From 10629b6587bd3a28b0d0bf9487ef07f6c6c0fda2 Mon Sep 17 00:00:00 2001 From: Daniel Eischen Date: Wed, 23 Apr 2003 21:49:34 +0000 Subject: [PATCH] Add a macro to get the current thread mailbox pointer. --- lib/libpthread/arch/i386/include/ksd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libpthread/arch/i386/include/ksd.h b/lib/libpthread/arch/i386/include/ksd.h index 20a222b68de..0f39fffc41a 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);