From 6fc61be869a5db3842aa3ca95565984c754251cd Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 17 Aug 2004 17:03:24 +0000 Subject: Fixed an assembler warning / error (depending on the version of GAS used). Fixed a crash in the optimized pthreads dispatch path. --- src/mesa/x86/glapi_x86.S | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/mesa/x86/glapi_x86.S') diff --git a/src/mesa/x86/glapi_x86.S b/src/mesa/x86/glapi_x86.S index 4c8044e49cc..6727e708c11 100644 --- a/src/mesa/x86/glapi_x86.S +++ b/src/mesa/x86/glapi_x86.S @@ -42,7 +42,7 @@ #define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX)) #if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) -#define GLOBL_FN(x) GLOBL x ; .type x,@function +#define GLOBL_FN(x) GLOBL x ; .type x, function #else #define GLOBL_FN(x) GLOBL x #endif @@ -60,7 +60,7 @@ GL_PREFIX(fn, fn_alt): \ TEST_L(EAX, EAX) ; \ JE(1f) ; \ JMP(GL_OFFSET(off)) ; \ -1: CALL(get_dispatch) ; \ +1: CALL(_x86_get_dispatch) ; \ JMP(GL_OFFSET(off)) #elif defined(THREADS) # define GL_STUB(fn,off,fn_alt) \ @@ -87,21 +87,13 @@ SEG_TEXT #ifdef PTHREADS EXTERN GLNAME(_glapi_Dispatch) EXTERN GLNAME(_gl_DispatchTSD) -#ifdef __PIC__ -EXTERN GLNAME(pthread_getspecific@PLT) -#else EXTERN GLNAME(pthread_getspecific) -#endif ALIGNTEXT16 -GLNAME(get_dispatch): +GLNAME(_x86_get_dispatch): SUB_L(CONST(24), ESP) PUSH_L(GLNAME(_gl_DispatchTSD)) -#ifdef __PIC__ - CALL(GLNAME(pthread_getspecific@PLT)) -#else CALL(GLNAME(pthread_getspecific)) -#endif ADD_L(CONST(28), ESP) RET #elif defined(THREADS) -- cgit v1.2.3