summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-04-23 21:49:34 +0000
committerdeischen <deischen@FreeBSD.org>2003-04-23 21:49:34 +0000
commit5764fb3f84b661fd27ec432e5390fcb93c81c245 (patch)
treea373a9d62082e684612781ac62059d4f69b8a09f /lib/libpthread
parent4dac1223a3071f15b9a191b6b056289d9d93b54e (diff)
downloadFreeBSD-src-5764fb3f84b661fd27ec432e5390fcb93c81c245.zip
FreeBSD-src-5764fb3f84b661fd27ec432e5390fcb93c81c245.tar.gz
Add a macro to get the current thread mailbox pointer.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/arch/i386/include/ksd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpthread/arch/i386/include/ksd.h b/lib/libpthread/arch/i386/include/ksd.h
index 20a222b..0f39fff 100644
--- a/lib/libpthread/arch/i386/include/ksd.h
+++ b/lib/libpthread/arch/i386/include/ksd.h
@@ -135,6 +135,7 @@ __ksd_readandclear32(volatile u_long *addr)
#define _ksd_curkse ((struct kse *)KSD_GET_PTR(mbx.km_udata))
#define _ksd_curthread KSD_GET_PTR(curthread)
#define _ksd_set_tmbx(value) KSD_SET_PTR(mbx.km_curthread, (void *)value)
+#define _ksd_get_tmbx(value) KSD_GET_PTR(mbx.km_curthread)
#define _ksd_readandclear_tmbx KSD_READANDCLEAR_PTR(mbx.km_curthread)
int _ksd_create(struct ksd *ksd, void *base, int size);
OpenPOWER on IntegriCloud