Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp700/hp700 Fix register usage in hp700_intr_schedu...



details:   https://anonhg.NetBSD.org/src/rev/65a4a7cf267a
branches:  trunk
changeset: 753638:65a4a7cf267a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Apr 05 12:56:51 2010 +0000

description:
Fix register usage in hp700_intr_schedule after previous change (making
cpl, ipending, and intr_depth per CPU values).

diffstat:

 sys/arch/hp700/hp700/locore.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r f7857df6d63e -r 65a4a7cf267a sys/arch/hp700/hp700/locore.S
--- a/sys/arch/hp700/hp700/locore.S     Mon Apr 05 09:30:46 2010 +0000
+++ b/sys/arch/hp700/hp700/locore.S     Mon Apr 05 12:56:51 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.45 2010/03/31 12:56:14 skrll Exp $        */
+/*     $NetBSD: locore.S,v 1.46 2010/04/05 12:56:51 skrll Exp $        */
 /*     $OpenBSD: locore.S,v 1.158 2008/07/28 19:08:46 miod Exp $       */
 
 /*
@@ -619,9 +619,9 @@
        ldw     L_CPU(%t1),%t2
        mfctl   %eiem, %arg1
        mtctl   %r0, %eiem                      ; disable interrupts
-       ldw     CI_IPENDING(%t1), %r1           ; load ipending
+       ldw     CI_IPENDING(%t2), %r1           ; load ipending
        or      %r1, %arg0, %r1                 ; or in mask
-       stw     %r1, CI_IPENDING(%t1)           ; store ipending
+       stw     %r1, CI_IPENDING(%t2)           ; store ipending
        ldw     CI_CPL(%t2), %arg0              ; load cpl
        andcm,= %r1, %arg0, %r1                 ; and ipending with ~cpl
        b,n     spllower_dispatch               ; dispatch if we can



Home | Main Index | Thread Index | Old Index