summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-09-15 21:02:25 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-09-15 21:02:25 +0000
commit88e309d06c4da0ed7c742b5f0350127e441b10fd (patch)
treec6f76c1510cc2dec224b9f46c727791bbeebd8d6 /sys/arch
parentb4cc5ec34e8a460233d8467bb30649a32274d685 (diff)
Make sure we block clock interrupts at IPL_CLOCK and higher.
ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/dev/openpic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c
index ba932209747..ca863b97c3e 100644
--- a/sys/arch/macppc/dev/openpic.c
+++ b/sys/arch/macppc/dev/openpic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openpic.c,v 1.56 2009/09/13 10:16:37 kettenis Exp $ */
+/* $OpenBSD: openpic.c,v 1.57 2009/09/15 21:02:24 kettenis Exp $ */
/*-
* Copyright (c) 1995 Per Fogelstrom
@@ -415,6 +415,8 @@ openpic_calc_mask()
for (i = IPL_NONE; i <= IPL_HIGH; i++) {
if (i > IPL_NONE)
imask[i] |= SINT_MASK;
+ if (i >= IPL_CLOCK)
+ imask[i] |= SPL_CLOCK;
}
imask[IPL_HIGH] = 0xffffffff;
}