Add a macro to get the current thread mailbox pointer.

This commit is contained in:
Daniel Eischen 2003-04-23 21:49:34 +00:00
parent c159269082
commit 10629b6587
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113944

View file

@ -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);