mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 05:48:07 +02:00
mapi: Add ABI-tag note.
TLS requires kernel >= 2.4.20. Per glapi.
This commit is contained in:
parent
a954dbeb8c
commit
c7119e281b
2 changed files with 26 additions and 0 deletions
|
|
@ -30,6 +30,19 @@
|
|||
#include "u_execmem.h"
|
||||
#include "u_macros.h"
|
||||
|
||||
#ifdef __linux__
|
||||
__asm__(".section .note.ABI-tag, \"a\"\n\t"
|
||||
".p2align 2\n\t"
|
||||
".long 1f - 0f\n\t" /* name length */
|
||||
".long 3f - 2f\n\t" /* data length */
|
||||
".long 1\n\t" /* note length */
|
||||
"0: .asciz \"GNU\"\n\t" /* vendor name */
|
||||
"1: .p2align 2\n\t"
|
||||
"2: .long 0\n\t" /* note data: the ABI tag */
|
||||
".long 2,4,20\n\t" /* Minimum kernel version w/TLS */
|
||||
"3: .p2align 2\n\t"); /* pad out section */
|
||||
#endif /* __linux__ */
|
||||
|
||||
__asm__(".text");
|
||||
|
||||
__asm__("x86_64_current_tls:\n\t"
|
||||
|
|
|
|||
|
|
@ -30,6 +30,19 @@
|
|||
#include "u_execmem.h"
|
||||
#include "u_macros.h"
|
||||
|
||||
#ifdef __linux__
|
||||
__asm__(".section .note.ABI-tag, \"a\"\n\t"
|
||||
".p2align 2\n\t"
|
||||
".long 1f - 0f\n\t" /* name length */
|
||||
".long 3f - 2f\n\t" /* data length */
|
||||
".long 1\n\t" /* note length */
|
||||
"0: .asciz \"GNU\"\n\t" /* vendor name */
|
||||
"1: .p2align 2\n\t"
|
||||
"2: .long 0\n\t" /* note data: the ABI tag */
|
||||
".long 2,4,20\n\t" /* Minimum kernel version w/TLS */
|
||||
"3: .p2align 2\n\t"); /* pad out section */
|
||||
#endif /* __linux__ */
|
||||
|
||||
__asm__(".text");
|
||||
|
||||
__asm__("x86_current_tls:\n\t"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue