summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2005-04-16 14:47:50 +0000
committermarius <marius@FreeBSD.org>2005-04-16 14:47:50 +0000
commitf6ff285bc8587aaf4f40794b74acb98f6222a997 (patch)
treef01dd26adf0a610f677f8a135048d2de7e046964 /sys/sparc64
parent51183f0f84c55dbff5987158aa92cc12382f45c9 (diff)
downloadFreeBSD-src-f6ff285bc8587aaf4f40794b74acb98f6222a997.zip
FreeBSD-src-f6ff285bc8587aaf4f40794b74acb98f6222a997.tar.gz
Fix a style(9) bug in the stxa_sync() macro (DO NOT use function calls
in initializers).
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/include/cpufunc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sparc64/include/cpufunc.h b/sys/sparc64/include/cpufunc.h
index ea82ada..763741d 100644
--- a/sys/sparc64/include/cpufunc.h
+++ b/sys/sparc64/include/cpufunc.h
@@ -194,7 +194,8 @@ intr_disable(void)
* between. We also need to disable interrupts completely.
*/
#define stxa_sync(va, asi, val) do { \
- u_long s = intr_disable(); \
+ u_long s; \
+ s = intr_disable(); \
__asm __volatile("stxa %0, [%1] %2; membar #Sync" \
: : "r" (val), "r" (va), "n" (asi)); \
intr_restore(s); \
OpenPOWER on IntegriCloud