summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-05-20 14:18:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-05-20 14:18:36 +0000
commit4c72f2efc8c4110450a61bcdba445cc502d05aea (patch)
tree93af29e45e14b7a5fd7554cfd6462a340bba65cb
parent0b4af72c622ad945b3de26f8ace605266819d3af (diff)
Put explicit barriers in in-line spl functions.
-rw-r--r--sys/arch/sparc64/include/psl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/psl.h b/sys/arch/sparc64/include/psl.h
index 485899a3573..51dc930645d 100644
--- a/sys/arch/sparc64/include/psl.h
+++ b/sys/arch/sparc64/include/psl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: psl.h,v 1.20 2006/03/12 03:00:32 brad Exp $ */
+/* $OpenBSD: psl.h,v 1.21 2006/05/20 14:18:35 miod Exp $ */
/* $NetBSD: psl.h,v 1.20 2001/04/13 23:30:05 thorpej Exp $ */
/*
@@ -342,6 +342,7 @@ extern __inline int name() \
: "=&r" (oldpil) \
: "n" (newpil) \
: "%g0"); \
+ __asm __volatile("" : : : "memory"); \
return (oldpil); \
}
/* A non-priority-decreasing version of SPL */
@@ -371,6 +372,7 @@ extern __inline int name() \
: "I" (newpil) \
: "cc"); \
} \
+ __asm __volatile("" : : : "memory"); \
return (oldpil); \
}
#endif