summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch/amd64/include/pthread_md.h
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-08-16 03:27:29 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-08-16 03:27:29 +0000
commit48729174301a8e17185c18c146f969c0fc2dd9f0 (patch)
tree9e58ede141be355c38f2c1cd9f7881b2e6134800 /lib/libpthread/arch/amd64/include/pthread_md.h
parent62ead65343c2618ed24b963da542a95e4373aa7d (diff)
downloadFreeBSD-src-48729174301a8e17185c18c146f969c0fc2dd9f0.zip
FreeBSD-src-48729174301a8e17185c18c146f969c0fc2dd9f0.tar.gz
1. Add macro DTV_OFFSET to calculate dtv offset in tcb.
2. Export symbols needed by debugger.
Diffstat (limited to 'lib/libpthread/arch/amd64/include/pthread_md.h')
-rw-r--r--lib/libpthread/arch/amd64/include/pthread_md.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libpthread/arch/amd64/include/pthread_md.h b/lib/libpthread/arch/amd64/include/pthread_md.h
index 86af4af..4f903c5 100644
--- a/lib/libpthread/arch/amd64/include/pthread_md.h
+++ b/lib/libpthread/arch/amd64/include/pthread_md.h
@@ -32,12 +32,14 @@
#ifndef _PTHREAD_MD_H_
#define _PTHREAD_MD_H_
+#include <stddef.h>
#include <sys/types.h>
#include <sys/kse.h>
#include <machine/sysarch.h>
#include <ucontext.h>
#define KSE_STACKSIZE 16384
+#define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
#define THR_GETCONTEXT(ucp) \
(void)_amd64_save_context(&(ucp)->uc_mcontext)
OpenPOWER on IntegriCloud