diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2005-05-24 19:37:09 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2005-05-24 19:37:09 +0000 |
commit | 42f085fa4408e033e1a9b24a138bc932345de87d (patch) | |
tree | 6fa7855e0b11f36d11529d7277d004ac9c0c1d8b /sys/arch/i386 | |
parent | 9d56594a0cdb37df88f3817344e86f754d8a2e1a (diff) |
replace jnz FOO;jmp BAR;FOO: with jz BAR;FOO:, the idle loop will be even more efficient
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/locore.s | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s index 99ba37aacd8..2a37bc7f836 100644 --- a/sys/arch/i386/i386/locore.s +++ b/sys/arch/i386/i386/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.84 2005/05/24 08:54:14 marco Exp $ */ +/* $OpenBSD: locore.s,v 1.85 2005/05/24 19:37:08 niklas Exp $ */ /* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */ /*- @@ -1614,8 +1614,7 @@ ENTRY(idle_loop) hlt #endif cmpl $0,_C_LABEL(whichqs) - jnz _C_LABEL(idle_exit) - jmp _C_LABEL(idle_loop) + jz _C_LABEL(idle_loop) ENTRY(idle_exit) movl $IPL_HIGH,CPL # splhigh |