summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-05-22 22:29:15 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-05-22 22:29:15 +0000
commitcfd70d7b663acb5e4f8f064585471e9d9cf516c4 (patch)
treec9acc8fd2104417b3c8a9e341dd73c38dd5be521 /sys
parent119dd15162cda6d1692176691763e8d52344bba0 (diff)
Quick hack to make non-MULTIPROCESSOR kernels work by restricting
interrupt vectors to 11 bits.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/sparc64/locore.s5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s
index 9cfd8e8e038..028da67f55a 100644
--- a/sys/arch/sparc64/sparc64/locore.s
+++ b/sys/arch/sparc64/sparc64/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.138 2008/05/21 19:42:07 miod Exp $ */
+/* $OpenBSD: locore.s,v 1.139 2008/05/22 22:29:14 kettenis Exp $ */
/* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */
/*
@@ -3879,6 +3879,9 @@ interrupt_vector:
ldxa [%g2] ASI_IRDR, %g2 ! Get interrupt number
membar #Sync
+#ifndef MULTIPROCESSOR
+ and %g2, MAXINTNUM-1,%g2 ! XXX make sun4us work
+#endif
btst IRSR_BUSY, %g1
bz,pn %icc, 3f ! Spurious interrupt
cmp %g2, MAXINTNUM