Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 86796
Collapse All | Expand All

(-)xc/programs/Xserver/hw/xfree86/loader/loader.c (-2 / +2 lines)
Lines 114-120 static char freeHandles[MAX_HANDLE]; Link Here
114
static int refCount[MAX_HANDLE];
114
static int refCount[MAX_HANDLE];
115
#endif
115
#endif
116
116
117
#if defined(__sparc__) && defined(__GNUC__) && !defined(__FreeBSD__)
117
#if defined(__sparc__) && defined(__GNUC__) && !defined(__FreeBSD__) && !defined(__linux_sparc_64__)
118
# define SYMFUNCDOT(func) { "." #func, (funcptr)&__sparc_dot_ ## func },
118
# define SYMFUNCDOT(func) { "." #func, (funcptr)&__sparc_dot_ ## func },
119
# if !defined(__OpenBSD__)
119
# if !defined(__OpenBSD__)
120
# define SYMFUNCDOT89(func) { "." #func, (funcptr)&func ## _sparcv89 },
120
# define SYMFUNCDOT89(func) { "." #func, (funcptr)&func ## _sparcv89 },
Lines 343-349 LoaderInit(void) Link Here
343
    LoaderAddSymbols(-1, -1, dixLookupTab);
343
    LoaderAddSymbols(-1, -1, dixLookupTab);
344
    LoaderAddSymbols(-1, -1, fontLookupTab);
344
    LoaderAddSymbols(-1, -1, fontLookupTab);
345
    LoaderAddSymbols(-1, -1, extLookupTab);
345
    LoaderAddSymbols(-1, -1, extLookupTab);
346
#if defined(__sparc__) && !defined(__FreeBSD__)
346
#if defined(__sparc__) && !defined(__FreeBSD__) && !defined(__linux_sparc_64__)
347
#ifdef linux
347
#ifdef linux
348
    if (sparcUseHWMulDiv())
348
    if (sparcUseHWMulDiv())
349
	LoaderAddSymbols(-1, -1, SparcV89LookupTab);
349
	LoaderAddSymbols(-1, -1, SparcV89LookupTab);
(-)xc/extras/Mesa/src/mesa/sparc/xform.S (-1 / +1 lines)
Lines 18-24 Link Here
18
18
19
#include "sparc_matrix.h"
19
#include "sparc_matrix.h"
20
20
21
#ifdef SVR4
21
#if defined(SVR4) || defined(__arch64__) || defined(__linux_sparc_64__)
22
	/* Solaris requires this for 64-bit. */
22
	/* Solaris requires this for 64-bit. */
23
        .register %g2, #scratch
23
        .register %g2, #scratch
24
        .register %g3, #scratch
24
        .register %g3, #scratch
(-)xc/extras/Mesa/src/mesa/sparc/norm.S (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
#include "sparc_matrix.h"
3
#include "sparc_matrix.h"
4
4
5
#ifdef SVR4
5
#if defined(SVR4) || defined(__arch64__) || defined(__linux_sparc_64__)
6
	/* Solaris requires this for 64-bit. */
6
	/* Solaris requires this for 64-bit. */
7
	.register %g2, #scratch
7
	.register %g2, #scratch
8
	.register %g3, #scratch
8
	.register %g3, #scratch
(-)xc/extras/Mesa/src/mesa/sparc/clip.S (-1 / +1 lines)
Lines 25-31 Link Here
25
#define VEC_SIZE_3   	7
25
#define VEC_SIZE_3   	7
26
#define VEC_SIZE_4   	15
26
#define VEC_SIZE_4   	15
27
27
28
#ifdef SVR4
28
#if defined(SVR4) || defined(__arch64__) || defined(__linux_sparc_64__)
29
        /* Solaris requires this for 64-bit. */
29
        /* Solaris requires this for 64-bit. */
30
        .register %g2, #scratch
30
        .register %g2, #scratch
31
        .register %g3, #scratch
31
        .register %g3, #scratch
(-)xc/programs/Xserver/hw/xfree86/drivers/sunffb/VISmoveImage.s (+5 lines)
Lines 174-179 tgtr: Link Here
174
 * by machines, not humans.  Comments are deliberately left as an exercise
174
 * by machines, not humans.  Comments are deliberately left as an exercise
175
 * to the occasional reader.  */
175
 * to the occasional reader.  */
176
176
177
#if defined(__arch64__) || defined(__linux_sparc_64__)
178
	.register		%g2, #scratch
179
	.register		%g3, #scratch
180
#endif
181
177
	.text
182
	.text
178
	.globl			VISmoveImageLR
183
	.globl			VISmoveImageLR
179
	.align			32
184
	.align			32
(-)xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_asm.s.orig (+5 lines)
Lines 54-59 Link Here
54
#define SEG_X2		0x04
54
#define SEG_X2		0x04
55
#define SEG_Y2		0x06
55
#define SEG_Y2		0x06
56
56
57
#if defined(__arch64__) || defined(__linux_sparc_64__)
58
	.register %g2, #scratch
59
	.register %g3, #scratch
60
#endif
61
57
	.text
62
	.text
58
63
59
	.align	32
64
	.align	32
(-)xc/extras/Mesa/src/mesa/sparc/glapi_sparc.S (+8 lines)
Lines 5-10 Link Here
5
 * sethi/or instruction sequences below at library init time.
5
 * sethi/or instruction sequences below at library init time.
6
 */
6
 */
7
7
8
#if (defined(__sparc_v9__) && (!defined(__linux__) || defined(__linux_sparc_64__)))
9
.register %g2, #scratch
10
.register %g3, #scratch
11
#else
12
# ifdef __arch64__
13
.register %g3, #scratch
14
# endif
15
#endif
8
16
9
.text
17
.text
10
.align 32
18
.align 32

Return to bug 86796