From: Matt Turner Date: Fri, 26 Sep 2014 00:28:20 +0000 (-0700) Subject: glapi: Inline x86_64_current_tls(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e34834f059c68fc8cc6fc941bbde6d7a460595a7;p=mesa.git glapi: Inline x86_64_current_tls(). Reviewed-by: Ian Romanick --- diff --git a/src/mapi/entry_x86-64_tls.h b/src/mapi/entry_x86-64_tls.h index 5c03b045606..38facccc870 100644 --- a/src/mapi/entry_x86-64_tls.h +++ b/src/mapi/entry_x86-64_tls.h @@ -46,13 +46,6 @@ __asm__(".text\n" #ifndef MAPI_MODE_BRIDGE -__asm__("x86_64_current_tls:\n\t" - "movq " ENTRY_CURRENT_TABLE "@GOTTPOFF(%rip), %rax\n\t" - "ret"); - -extern unsigned long -x86_64_current_tls(); - #include #include "u_execmem.h" @@ -90,7 +83,8 @@ entry_generate(int slot) char *code; mapi_func entry; - addr = x86_64_current_tls(); + __asm__("movq " ENTRY_CURRENT_TABLE "@GOTTPOFF(%%rip), %0" + : "=r" (addr)); if ((addr >> 32) != 0xffffffff) return NULL; addr &= 0xffffffff;