aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/x86_64/tls.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-15 09:51:22 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-15 09:51:22 +0000
commita87731e262c909f2127a57f42563ece410789abe (patch)
treec8c9f79d3c582b3d23b7d9b55723bd5e836efe80 /nptl/sysdeps/x86_64/tls.h
parent92ed3daf013788e18a1bb339721aa76389039863 (diff)
downloadglibc-a87731e262c909f2127a57f42563ece410789abe.tar
glibc-a87731e262c909f2127a57f42563ece410789abe.tar.gz
glibc-a87731e262c909f2127a57f42563ece410789abe.tar.bz2
glibc-a87731e262c909f2127a57f42563ece410789abe.zip
Update.
2003-03-15 Ulrich Drepper <drepper@redhat.com> * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use __builtin_frame_address, use stack pointer. * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME instead of __builtin_frame_pointer.
Diffstat (limited to 'nptl/sysdeps/x86_64/tls.h')
-rw-r--r--nptl/sysdeps/x86_64/tls.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/nptl/sysdeps/x86_64/tls.h b/nptl/sysdeps/x86_64/tls.h
index e7fab7a1b2..f382db2861 100644
--- a/nptl/sysdeps/x86_64/tls.h
+++ b/nptl/sysdeps/x86_64/tls.h
@@ -253,6 +253,18 @@ typedef struct
}})
+#define CALL_THREAD_FCT(descr) \
+ ({ void *__res; \
+ asm volatile ("movq %%fs:%P2, %%rdi\n\t" \
+ "callq *%%fs:%P1" \
+ : "=a" (__res) \
+ : "i" (offsetof (struct pthread, start_routine)), \
+ "i" (offsetof (struct pthread, arg)) \
+ : "di", "si", "cx", "dx", "r8", "r9", "r10", "r11", \
+ "memory", "cc"); \
+ __res; })
+
+
#endif /* __ASSEMBLER__ */
#endif /* tls.h */