summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>2005-05-24 19:37:08 +0000
committerniklas <niklas@openbsd.org>2005-05-24 19:37:08 +0000
commit2899ef00bf122576337df4ffeb64fa779d4487ca (patch)
treef2d58f1384a6674901c2a7f7963f0e7e45aad9e3
parentcleanup parser, permit more than one listener (diff)
downloadwireguard-openbsd-2899ef00bf122576337df4ffeb64fa779d4487ca.tar.xz
wireguard-openbsd-2899ef00bf122576337df4ffeb64fa779d4487ca.zip
replace jnz FOO;jmp BAR;FOO: with jz BAR;FOO:, the idle loop will be even more efficient
-rw-r--r--sys/arch/i386/i386/locore.s5
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