diff options
author | deischen <deischen@FreeBSD.org> | 2003-04-23 21:49:34 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-04-23 21:49:34 +0000 |
commit | 5764fb3f84b661fd27ec432e5390fcb93c81c245 (patch) | |
tree | a373a9d62082e684612781ac62059d4f69b8a09f /lib/libpthread | |
parent | 4dac1223a3071f15b9a191b6b056289d9d93b54e (diff) | |
download | FreeBSD-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.h | 1 |
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); |