Properly wrap mtx_intr_enable() macro in "do $bla while (0)"

This commit is contained in:
Poul-Henning Kamp 2001-06-02 08:17:42 +00:00
parent a8ef346171
commit 0d31cbfab7
5 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@
/* Global locks */
extern struct mtx clock_lock;
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit = ALPHA_PSL_IPL_0
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit = ALPHA_PSL_IPL_0; while (0)
#endif /* _KERNEL */

View File

@ -40,7 +40,7 @@
/* Global locks */
extern struct mtx clock_lock;
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit |= PSL_I
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit |= PSL_I; while (0)
/*
* Assembly macros (for internal use only)

View File

@ -40,7 +40,7 @@
/* Global locks */
extern struct mtx clock_lock;
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit |= PSL_I
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit |= PSL_I; while (0)
/*
* Assembly macros (for internal use only)

View File

@ -38,7 +38,7 @@
#ifdef _KERNEL
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit |= IA64_PSR_I
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit |= IA64_PSR_I; while (0)
#endif /* _KERNEL */

View File

@ -39,7 +39,7 @@
/* Global locks */
extern struct mtx clock_lock;
#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit = ALPHA_PSL_IPL_0
#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit = ALPHA_PSL_IPL_0; while (0)
#endif /* _KERNEL */