X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmapi%2Fentry.c;h=315829eb30bbd0aed6d07b03ffe4141cdd660a21;hb=844c3f94b5b9092c3fa904a0034883def6c177af;hp=27d0db40efce3158bf93c29e9b5e1a6ef0a88f40;hpb=c3f352e8367f03cc416968d780f5dc6a6812a496;p=mesa.git diff --git a/src/mapi/entry.c b/src/mapi/entry.c index 27d0db40efc..315829eb30b 100644 --- a/src/mapi/entry.c +++ b/src/mapi/entry.c @@ -25,8 +25,12 @@ * Chia-I Wu */ +#include +#include + #include "entry.h" #include "u_current.h" +#include "util/u_endian.h" #define _U_STRINGIFY(x) #x #define U_STRINGIFY(x) _U_STRINGIFY(x) @@ -42,18 +46,22 @@ #endif #if defined(USE_X86_ASM) && defined(__GNUC__) -# ifdef GLX_USE_TLS +# ifdef USE_ELF_TLS # include "entry_x86_tls.h" # else # include "entry_x86_tsd.h" # endif -#elif defined(USE_X86_64_ASM) && defined(__GNUC__) && defined(GLX_USE_TLS) +#elif defined(USE_X86_64_ASM) && defined(__GNUC__) && defined(USE_ELF_TLS) # include "entry_x86-64_tls.h" +#elif defined(USE_PPC64LE_ASM) && defined(__GNUC__) && UTIL_ARCH_LITTLE_ENDIAN +# ifdef USE_ELF_TLS +# include "entry_ppc64le_tls.h" +# else +# include "entry_ppc64le_tsd.h" +# endif #else -#include - -static inline const struct mapi_table * +static inline const struct _glapi_table * entry_current_get(void) { #ifdef MAPI_MODE_BRIDGE