Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Fix botch in previous. #ifdef DIAGNOST...
details: https://anonhg.NetBSD.org/src/rev/baa0c440cc30
branches: trunk
changeset: 535302:baa0c440cc30
user: uwe <uwe%NetBSD.org@localhost>
date: Wed Aug 14 14:45:37 2002 +0000
description:
Fix botch in previous. #ifdef DIAGNOSTIC was one instructions too early
in sparc_interrupt4m, thus breaking soft interrupts for normal 4m's.
Should fix port-sparc/17891 (thanks, Martin).
diffstat:
sys/arch/sparc/sparc/locore.s | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 8803be60487b -r baa0c440cc30 sys/arch/sparc/sparc/locore.s
--- a/sys/arch/sparc/sparc/locore.s Wed Aug 14 14:25:15 2002 +0000
+++ b/sys/arch/sparc/sparc/locore.s Wed Aug 14 14:45:37 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.160 2002/08/04 14:57:34 uwe Exp $ */
+/* $NetBSD: locore.s,v 1.161 2002/08/14 14:45:37 uwe Exp $ */
/*
* Copyright (c) 1996 Paul Kranenburg
@@ -2480,10 +2480,10 @@
bnz sparc_interrupt_common
nop
-#ifdef DIAGNOSTIC
! both softint pending and clear bits are in upper halfwords of
! their respective registers so shift the test bit in %l4 up there
sll %l4, 16, %l4
+#ifdef DIAGNOSTIC
btst %l4, %l5 ! make sure softint pending bit is set
bnz softintr_common
st %l4, [%l6 + ICR_PI_CLR_OFFSET]
Home |
Main Index |
Thread Index |
Old Index