summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-12-13 23:38:28 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-12-13 23:38:28 +0000
commitf5ba45b1176a63dc3bb6e0f39ba9ae9f36a149c6 (patch)
treedac9f826a78784bcd8d7126f694ce38413bd43c0 /sys
parentfbe45f6d783a63ed3421a0144d7a3d1048723849 (diff)
remover registers. bracket spl regions with asm volatiles
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/include/intr.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/arch/i386/include/intr.h b/sys/arch/i386/include/intr.h
index d8e716507f0..5ebac3b71d1 100644
--- a/sys/arch/i386/include/intr.h
+++ b/sys/arch/i386/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.10 2001/12/04 00:00:36 niklas Exp $ */
+/* $OpenBSD: intr.h,v 1.11 2001/12/13 23:38:27 niklas Exp $ */
/* $NetBSD: intr.h,v 1.5 1996/05/13 06:11:28 mycroft Exp $ */
/*
@@ -116,12 +116,13 @@ static __inline void softintr __P((int));
*/
static __inline int
splraise(ncpl)
- register int ncpl;
+ int ncpl;
{
- register int ocpl = cpl;
+ int ocpl = cpl;
if (ncpl > ocpl)
cpl = ncpl;
+ __asm __volatile("");
return (ocpl);
}
@@ -131,8 +132,9 @@ splraise(ncpl)
*/
static __inline void
splx(ncpl)
- register int ncpl;
+ int ncpl;
{
+ __asm __volatile("");
cpl = ncpl;
if (ipending & IUNMASK(ncpl))
Xspllower();
@@ -144,9 +146,9 @@ splx(ncpl)
*/
static __inline int
spllower(ncpl)
- register int ncpl;
+ int ncpl;
{
- register int ocpl = cpl;
+ int ocpl = cpl;
splx(ncpl);
return (ocpl);
@@ -188,7 +190,7 @@ spllower(ncpl)
*/
static __inline void
softintr(mask)
- register int mask;
+ int mask;
{
__asm __volatile("orl %0,_ipending" : : "ir" (mask));
}