From e5f14e7bf920a6f3fda6c57c7950b9d21f9b8718 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 17 Oct 2007 21:30:09 +0000 Subject: MULTIPROCESSOR kernels need clock interrupts on secondary CPUs too, so don't mark interrupts as busy. --- sys/arch/sparc64/sparc64/locore.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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 -- cgit v1.2.3