aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include/sys/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'com32/include/sys/cpu.h')
-rw-r--r--com32/include/sys/cpu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/com32/include/sys/cpu.h b/com32/include/sys/cpu.h
index d96ec665..a798a840 100644
--- a/com32/include/sys/cpu.h
+++ b/com32/include/sys/cpu.h
@@ -105,7 +105,10 @@ static inline void cpu_relax(void)
asm volatile ("rep ; nop");
}
-/* These are local cli/sti; not SMP-safe!!! */
+static inline void hlt(void)
+{
+ asm volatile ("hlt");
+}
static inline void cli(void)
{