Fix a style(9) bug in the stxa_sync() macro (DO NOT use function calls

in initializers).
This commit is contained in:
Marius Strobl 2005-04-16 14:47:50 +00:00
parent 030a28b3b5
commit c066bca62d

View File

@ -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); \