Revert "mapi: Inline call x86_current_tls."
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 25 Oct 2019 16:31:23 +0000 (11:31 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 25 Oct 2019 16:31:51 +0000 (11:31 -0500)
This reverts commit e137b3a9b71a2711c1f68c8a8b9c0a7407fbcc4b.  It
completely broke 32-bit EGL such that wflinfo can't even run without
crashing.

src/mapi/entry_x86_tls.h

index 4b3d6bd02adfa3bb3fd61ba23200a07d02a0eaf8..545b5a3c786d90e6b4e0d3376f21ee8956068b4e 100644 (file)
@@ -56,13 +56,9 @@ __asm__(".balign 16\n"
    ".balign 16\n"                \
    func ":"
 
-#define STUB_ASM_CODE(slot)                                 \
-   "call 1f\n"                                              \
-   "1:\n\t"                                                 \
-   "popl %eax\n\t"                                          \
-   "addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %eax\n\t"           \
-   "movl " ENTRY_CURRENT_TABLE "@GOTNTPOFF(%eax), %eax\n\t" \
-   "movl %gs:(%eax), %eax\n\t"                              \
+#define STUB_ASM_CODE(slot)      \
+   "call x86_current_tls\n\t"    \
+   "movl %gs:(%eax), %eax\n\t"   \
    "jmp *(4 * " slot ")(%eax)"
 
 #define MAPI_TMP_STUB_ASM_GCC