diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2005-05-25 22:50:26 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2005-05-25 22:50:26 +0000 |
commit | 5b1225a6cc3f0975994316e1fe3570cb648bda7d (patch) | |
tree | 7e75e8a0149585a02163203bc37653eb2f7583fc /sys/arch/i386 | |
parent | 7d4ed2123a779da64baea403a88936ef606826fb (diff) |
one last optimization, removing a jump, mostly by
toby, committed so art will stop yelling at me to
avoid conflicts...
ok marco@, weingart@, mickey@, niklas@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/locore.s | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s index 1d6f0cc39c3..a067a9b3ca9 100644 --- a/sys/arch/i386/i386/locore.s +++ b/sys/arch/i386/i386/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.86 2005/05/25 19:07:13 mickey Exp $ */ +/* $OpenBSD: locore.s,v 1.87 2005/05/25 22:50:25 beck Exp $ */ /* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */ /*- @@ -1599,11 +1599,10 @@ ENTRY(idle) movl $IPL_NONE,CPL # spl0() call _C_LABEL(Xspllower) # process pending interrupts +ENTRY(idle_loop) cli cmpl $0,_C_LABEL(whichqs) jnz _C_LABEL(idle_exit) - -ENTRY(idle_loop) #if NPCTR > 0 && NAPM == 0 addl $1,_C_LABEL(pctr_idlcnt) adcl $0,_C_LABEL(pctr_idlcnt)+4 @@ -1614,9 +1613,7 @@ ENTRY(idle_loop) sti hlt #endif - cli - cmpl $0,_C_LABEL(whichqs) - jz _C_LABEL(idle_loop) + jmp _C_LABEL(idle_loop) ENTRY(idle_exit) movl $IPL_HIGH,CPL # splhigh |