diff options
author | jhb <jhb@FreeBSD.org> | 2001-02-10 02:15:18 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-02-10 02:15:18 +0000 |
commit | 5f9a24a51ce42e61de3d01ef8d0963b752b9023e (patch) | |
tree | 8199f280eb38541f652a3416510c8ef253732810 /sys/powerpc | |
parent | b8bd5d2b4448a538b517e75ccd9023c33f6cc574 (diff) | |
download | FreeBSD-src-5f9a24a51ce42e61de3d01ef8d0963b752b9023e.zip FreeBSD-src-5f9a24a51ce42e61de3d01ef8d0963b752b9023e.tar.gz |
Add a macro mtx_intr_enable() to alter a spin lock such that interrupts
will be enabled when it is released.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/mutex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/powerpc/include/mutex.h b/sys/powerpc/include/mutex.h index 564ad19..2c1a302 100644 --- a/sys/powerpc/include/mutex.h +++ b/sys/powerpc/include/mutex.h @@ -48,6 +48,7 @@ #define mtx_legal2block() \ ((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) == ALPHA_PSL_IPL_0) +#define mtx_intr_enable(mutex) (mutex)->mtx_saveintr = ALPHA_PSL_IPL_0 /* * Assembly macros (for internal use only) |