Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/x68k Wrong logic. Pointed out by Yasufumi.



details:   https://anonhg.NetBSD.org/src/rev/6c5299951ff3
branches:  trunk
changeset: 486313:6c5299951ff3
user:      minoura <minoura%NetBSD.org@localhost>
date:      Thu May 18 15:24:30 2000 +0000

description:
Wrong logic.  Pointed out by Yasufumi.

diffstat:

 sys/arch/x68k/x68k/locore.s |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 8ad0f8088a24 -r 6c5299951ff3 sys/arch/x68k/x68k/locore.s
--- a/sys/arch/x68k/x68k/locore.s       Thu May 18 14:00:46 2000 +0000
+++ b/sys/arch/x68k/x68k/locore.s       Thu May 18 15:24:30 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.54 2000/05/14 14:13:55 minoura Exp $      */
+/*     $NetBSD: locore.s,v 1.55 2000/05/18 15:24:30 minoura Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1066,7 +1066,6 @@
  * to wait for something to come ready.
  */
 ASENTRY_NOPROFILE(Idle)
-       stop    #PSL_LOWIPL
        movw    #PSL_HIGHIPL,%sr
        movl    _C_LABEL(whichqs),%d0
        jne     Lsw1
@@ -1074,9 +1073,12 @@
 
        /* Try to zero some pages. */
        movl    _C_LABEL(uvm)+UVM_PAGE_IDLE_ZERO,%d0
-       jeq     _ASM_LABEL(Idle)
+       jeq     1f
        jbsr    _C_LABEL(uvm_pageidlezero)
        jra     _ASM_LABEL(Idle)
+1:
+       stop    #PSL_LOWIPL
+       jra     _ASM_LABEL(Idle)
 
 Lbadsw:
        PANIC("switch")



Home | Main Index | Thread Index | Old Index