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 Don't grab the kernel lock for system t...



details:   https://anonhg.NetBSD.org/src/rev/32b12b4d2c52
branches:  trunk
changeset: 541710:32b12b4d2c52
user:      pk <pk%NetBSD.org@localhost>
date:      Fri Jan 17 10:36:19 2003 +0000

description:
Don't grab the kernel lock for system timer interrupts; this mostly prevents
stalls in system time processing.

XXX - deal with non-atomic global time variables updates later.

diffstat:

 sys/arch/sparc/sparc/locore.s |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 77ea339b46ca -r 32b12b4d2c52 sys/arch/sparc/sparc/locore.s
--- a/sys/arch/sparc/sparc/locore.s     Fri Jan 17 10:07:23 2003 +0000
+++ b/sys/arch/sparc/sparc/locore.s     Fri Jan 17 10:36:19 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.182 2003/01/13 15:50:51 mrg Exp $ */
+/*     $NetBSD: locore.s,v 1.183 2003/01/17 10:36:19 pk Exp $  */
 
 /*
  * Copyright (c) 1996 Paul Kranenburg
@@ -2474,7 +2474,7 @@
 #if defined(MULTIPROCESSOR)
        /* Grab the kernel lock for interrupt levels <= IPL_CLOCK */
        cmp     %l3, IPL_CLOCK
-       bgu     3f
+       bgeu    3f
         st     %fp, [%sp + CCFSZ + 16]
        call    _C_LABEL(intr_lock_kernel)
         nop
@@ -2501,7 +2501,7 @@
 
 #if defined(MULTIPROCESSOR)
        cmp     %l3, IPL_CLOCK
-       bgu     0f
+       bgeu    0f
         nop
        call    _C_LABEL(intr_unlock_kernel)
         nop
@@ -2649,7 +2649,7 @@
 #if defined(MULTIPROCESSOR)
        /* Grab the kernel lock for interrupt levels <= IPL_CLOCK */
        cmp     %l3, IPL_CLOCK
-       bgu     3f
+       bgeu    3f
         st     %fp, [%sp + CCFSZ + 16]
        call    _C_LABEL(intr_lock_kernel)
         nop
@@ -2689,7 +2689,7 @@
 4:
 #if defined(MULTIPROCESSOR)
        cmp     %l3, IPL_CLOCK
-       bgu     0f
+       bgeu    0f
         nop
        call    _C_LABEL(intr_unlock_kernel)
         nop



Home | Main Index | Thread Index | Old Index