summaryrefslogtreecommitdiff
path: root/lib/mesa/src/mapi/entry_x86_tls.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-07-22 10:17:30 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-07-22 10:17:30 +0000
commitca11beabae33eb59fb981b8adf50b1d47a2a98f0 (patch)
tree3e4691a396e6e54cd54224a190663d5cf976625b /lib/mesa/src/mapi/entry_x86_tls.h
parent27c8a50e8bbde7d28b1fc46d715a4c469e24f2c4 (diff)
Import Mesa 21.1.5
Diffstat (limited to 'lib/mesa/src/mapi/entry_x86_tls.h')
-rw-r--r--lib/mesa/src/mapi/entry_x86_tls.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mesa/src/mapi/entry_x86_tls.h b/lib/mesa/src/mapi/entry_x86_tls.h
index 58a27cef1..bdaa97374 100644
--- a/lib/mesa/src/mapi/entry_x86_tls.h
+++ b/lib/mesa/src/mapi/entry_x86_tls.h
@@ -27,6 +27,12 @@
#include <string.h>
+#ifdef __CET__
+#define ENDBR "endbr32\n\t"
+#else
+#define ENDBR
+#endif
+
#ifdef HAVE_FUNC_ATTRIBUTE_VISIBILITY
#define HIDDEN __attribute__((visibility("hidden")))
#else
@@ -59,6 +65,7 @@ __asm__(".balign 16\n"
func ":"
#define STUB_ASM_CODE(slot) \
+ ENDBR \
"call 1f\n" \
"1:\n\t" \
"popl %eax\n\t" \