summaryrefslogtreecommitdiff
path: root/com32
diff options
context:
space:
mode:
authorhpa <hpa>2005-08-19 03:08:45 +0000
committerhpa <hpa>2005-08-19 03:08:45 +0000
commit9cbd0df60a1efb5e2622a54f40de557133346246 (patch)
tree831519c8cceb056f59ac8c56d46b13279e29bf9c /com32
parent05bd717cda9192f2cac135ff3463a772a7a1c82d (diff)
downloadsyslinux-9cbd0df60a1efb5e2622a54f40de557133346246.tar.gz
Saner idle call semantics
Diffstat (limited to 'com32')
-rw-r--r--com32/lib/sys/idle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/lib/sys/idle.c b/com32/lib/sys/idle.c
index df8cc4af..85e857fc 100644
--- a/com32/lib/sys/idle.c
+++ b/com32/lib/sys/idle.c
@@ -51,8 +51,7 @@ void syslinux_idle(void)
if ( do_idle ) {
__intcall(0x22, &sys_idle, &idle_result);
- if ( idle_result.eflags.l & EFLAGS_CF )
- do_idle = 0;
+ do_idle = ~idle_result.eflags.l & EFLAGS_CF;
}
cpu_relax();