Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Cope with intr.h of rev. 1.29 to prevent ...



details:   https://anonhg.NetBSD.org/src/rev/6dce630452de
branches:  trunk
changeset: 538847:6dce630452de
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Nov 01 06:06:17 2002 +0000

description:
Cope with intr.h of rev. 1.29 to prevent panic when DEBUG is defined;
since splsched() now raises system priority level just to IPL_SCHED,
we can't assert that current priority level is IPL_HIGH on cpu_switch.

diffstat:

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

diffs (24 lines):

diff -r 6f715bca2826 -r 6dce630452de sys/arch/i386/i386/locore.s
--- a/sys/arch/i386/i386/locore.s       Fri Nov 01 05:49:01 2002 +0000
+++ b/sys/arch/i386/i386/locore.s       Fri Nov 01 06:06:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.268 2002/11/01 05:49:01 enami Exp $       */
+/*     $NetBSD: locore.s,v 1.269 2002/11/01 06:06:17 enami Exp $       */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -1853,12 +1853,12 @@
        pushl   %edi
 
 #ifdef DEBUG
-       cmpl    $IPL_HIGH,CPL
+       cmpl    $IPL_SCHED,CPL
        je      1f
        pushl   $2f
        call    _C_LABEL(panic)
        /* NOTREACHED */
-2:     .asciz  "not splhigh() in cpu_switch!"
+2:     .asciz  "not splsched() in cpu_switch!"
 
 1:     
 #endif /* DEBUG */



Home | Main Index | Thread Index | Old Index