summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/include/arch/hlt.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/x86/include/arch/hlt.h b/src/arch/x86/include/arch/hlt.h
index 3709df2807..887c737b9c 100644
--- a/src/arch/x86/include/arch/hlt.h
+++ b/src/arch/x86/include/arch/hlt.h
@@ -3,9 +3,10 @@
#ifndef ARCH_HLT_H
#define ARCH_HLT_H
-static __always_inline void hlt(void)
+static __noreturn __always_inline void hlt(void)
{
- asm("hlt");
+ while (1)
+ asm("hlt");
}
#endif /* ARCH_HLT_H */