aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-07-03 22:09:15 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-07-03 22:18:37 +0100
commit02deada161fdc5639159ca4e3991665d6cc46f2d (patch)
treeb94d11e6d7d9b6834e34e8b6ab7ce62db06d1ab3
parent6bdbba2ff6d6e6235ba59e083eebaa6baa42350f (diff)
downloadsyslinux-02deada161fdc5639159ca4e3991665d6cc46f2d.tar.gz
syslinux-02deada161fdc5639159ca4e3991665d6cc46f2d.tar.xz
syslinux-02deada161fdc5639159ca4e3991665d6cc46f2d.zip
idle: enable interrupts before idling
Users are *still* reporting executing __idle() with interrupts disabled, which ultimately leads to a hang. Just enable them explicitly before idling. Cc: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--core/idle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/idle.c b/core/idle.c
index 7f76a14c..16d10d58 100644
--- a/core/idle.c
+++ b/core/idle.c
@@ -43,6 +43,7 @@ __export void __idle(void)
if (idle_hook_func && idle_hook_func())
return; /* Nonzero return = do not idle */
+ sti();
if (NoHalt)
cpu_relax();
else