summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/zs.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-04-28 03:51:20 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-04-28 03:51:20 +0000
commit01f1888ab438e973eb12a21e299c41bd032a1843 (patch)
tree46ff1fe9a26d1034f1ffd7428f44b835e8e42f7c /sys/arch/sparc/dev/zs.c
parent6deefde91348738a23382982fb049d624ae78efc (diff)
Rename all PIL_* constants to IPL_* to match other archs and make them
usable in MD code in the future. deraadt@ ok
Diffstat (limited to 'sys/arch/sparc/dev/zs.c')
-rw-r--r--sys/arch/sparc/dev/zs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/sparc/dev/zs.c b/sys/arch/sparc/dev/zs.c
index 5cbda3bb015..d535aa8ae39 100644
--- a/sys/arch/sparc/dev/zs.c
+++ b/sys/arch/sparc/dev/zs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zs.c,v 1.33 2002/03/14 01:26:43 millert Exp $ */
+/* $OpenBSD: zs.c,v 1.34 2002/04/28 03:51:19 art Exp $ */
/* $NetBSD: zs.c,v 1.49 1997/08/31 21:26:37 pk Exp $ */
/*
@@ -104,11 +104,11 @@
/*
* Select software interrupt bit based on TTY ipl.
*/
-#if PIL_TTY == 1
+#if IPL_TTY == 1
# define IE_ZSSOFT IE_L1
-#elif PIL_TTY == 4
+#elif IPL_TTY == 4
# define IE_ZSSOFT IE_L4
-#elif PIL_TTY == 6
+#elif IPL_TTY == 6
# define IE_ZSSOFT IE_L6
#else
# error "no suitable software interrupt bit"
@@ -292,12 +292,12 @@ zsattach(parent, dev, aux)
return;
}
pri = ra->ra_intr[0].int_pri;
- printf(" pri %d, softpri %d\n", pri, PIL_TTY);
+ printf(" pri %d, softpri %d\n", pri, IPL_TTY);
if (!didintr) {
didintr = 1;
prevpri = pri;
intr_establish(pri, &levelhard);
- intr_establish(PIL_TTY, &levelsoft);
+ intr_establish(IPL_TTY, &levelsoft);
} else if (pri != prevpri)
panic("broken zs interrupt scheme");
sc = (struct zs_softc *)dev;
@@ -939,7 +939,7 @@ zshard(intrarg)
/* XXX -- but this will go away when zshard moves to locore.s */
struct clockframe *p = intrarg;
- if ((p->psr & PSR_PIL) < (PIL_TTY << 8)) {
+ if ((p->psr & PSR_PIL) < (IPL_TTY << 8)) {
zsshortcuts++;
(void) spltty();
if (zshardscope) {
@@ -953,7 +953,7 @@ zshard(intrarg)
#if defined(SUN4M)
if (CPU_ISSUN4M)
- raise(0, PIL_TTY);
+ raise(0, IPL_TTY);
else
#endif
ienab_bis(IE_ZSSOFT);