mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Add a macro to get the current thread mailbox pointer.
This commit is contained in:
parent
c159269082
commit
10629b6587
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113944
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user