summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-10-17 21:30:09 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-10-17 21:30:09 +0000
commite5f14e7bf920a6f3fda6c57c7950b9d21f9b8718 (patch)
treedd78075f83ed71e63bf9796c9d4c1ac848b8d94a /sys/arch
parent5146d2857f2bf42c8a2ee2426137d95fdfe312bd (diff)
MULTIPROCESSOR kernels need clock interrupts on secondary CPUs too, so don't
mark interrupts as busy.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/sparc64/locore.s4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s
index b1a06dc9786..ee803afdd3b 100644
--- a/sys/arch/sparc64/sparc64/locore.s
+++ b/sys/arch/sparc64/sparc64/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.89 2007/10/17 21:23:28 kettenis Exp $ */
+/* $OpenBSD: locore.s,v 1.90 2007/10/17 21:30:08 kettenis Exp $ */
/* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */
/*
@@ -3221,9 +3221,11 @@ Lsoftint_regular:
nop
setup_sparcintr:
+#ifndef MULTIPROCESSOR
ldstub [%g5+IH_BUSY], %g6 ! Check if already in use
membar #LoadLoad | #LoadStore
brnz,pn %g6, ret_from_intr_vector ! Skip it if it's running
+#endif
ldub [%g5+IH_PIL], %g6 ! Read interrupt mask
sethi %hi(CPUINFO_VA+CI_INTRPENDING), %g1
mov 8, %g7 ! Number of slots to search