summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-06-02 08:17:42 +0000
committerphk <phk@FreeBSD.org>2001-06-02 08:17:42 +0000
commitb2f9beade9dad8ca12e55d9d2f37b7e838812db3 (patch)
tree0e6ec93b4da265a45250a8031ef80c2921d80b57 /sys/amd64
parentc060eab5cbb051c0ef128799a33b80b93038d708 (diff)
downloadFreeBSD-src-b2f9beade9dad8ca12e55d9d2f37b7e838812db3.zip
FreeBSD-src-b2f9beade9dad8ca12e55d9d2f37b7e838812db3.tar.gz
Properly wrap mtx_intr_enable() macro in "do $bla while (0)"
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/include/mutex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/mutex.h b/sys/amd64/include/mutex.h
index b605efb..b0fe512 100644
--- a/sys/amd64/include/mutex.h
+++ b/sys/amd64/include/mutex.h
@@ -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)
OpenPOWER on IntegriCloud