summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2011-09-16 17:56:53 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2011-09-16 17:56:53 +0000
commit04892254e3fb39e77520f4d6a8d29ae06772a2bb (patch)
tree355b4499342b74b4ea399140ad7ef65e462f40a0 /sys
parent5b47d4324dad2d8a27ad64fa5e5ca7d7ff919e70 (diff)
Set the shared priority entry to the value of the current maxipl entry,
not the index. ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/dev/macintr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/macppc/dev/macintr.c b/sys/arch/macppc/dev/macintr.c
index 3926a7d248a..278ea9ec990 100644
--- a/sys/arch/macppc/dev/macintr.c
+++ b/sys/arch/macppc/dev/macintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macintr.c,v 1.43 2011/08/29 20:21:44 drahn Exp $ */
+/* $OpenBSD: macintr.c,v 1.44 2011/09/16 17:56:52 drahn Exp $ */
/*-
* Copyright (c) 2008 Dale Rahn <drahn@openbsd.org>
@@ -404,8 +404,9 @@ macintr_calc_mask()
if (maxipl == IPL_NONE) {
minipl = IPL_NONE; /* Interrupt not enabled */
} else {
- for (i = minipl; i <= maxipl; i++)
- macintr_pri_share[i] = i;
+ for (i = minipl; i < maxipl; i++)
+ macintr_pri_share[i] =
+ macintr_pri_share[maxipl];
}
/* Enable interrupts at lower levels */