summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-12-11 07:16:12 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-12-11 07:16:12 +0000
commitcaba645cd60fbb2f2591d963cd8f1df7447db2a8 (patch)
tree512835ef1f6cc0487d2a98d744bac03886476c65 /sys
parent6fd178c3b5e9c4b3c161604293d7ddea2e442960 (diff)
Some people say that "__asm __volatile("")" is not enough.
Use "__asm __volatile("":::"memory")" to completly avoid reordering.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/include/intr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/include/intr.h b/sys/arch/i386/include/intr.h
index 18057a701a3..3341083146b 100644
--- a/sys/arch/i386/include/intr.h
+++ b/sys/arch/i386/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.17 2002/07/19 16:23:29 art Exp $ */
+/* $OpenBSD: intr.h,v 1.18 2002/12/11 07:16:11 art Exp $ */
/* $NetBSD: intr.h,v 1.5 1996/05/13 06:11:28 mycroft Exp $ */
/*
@@ -142,7 +142,7 @@ splraise(ncpl)
if (ncpl > ocpl)
cpl = ncpl;
- __asm __volatile("");
+ __asm __volatile("":::"memory");
return (ocpl);
}
@@ -155,7 +155,7 @@ void \
splx(ncpl) \
int ncpl; \
{ \
- __asm __volatile(""); \
+ __asm __volatile("":::"memory"); \
cpl = ncpl; \
if (ipending & IUNMASK(ncpl)) \
Xspllower(); \