aboutsummaryrefslogtreecommitdiff
path: root/i686/sys/control.h
diff options
context:
space:
mode:
Diffstat (limited to 'i686/sys/control.h')
-rw-r--r--i686/sys/control.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/i686/sys/control.h b/i686/sys/control.h
index 7dde3c8..89ab067 100644
--- a/i686/sys/control.h
+++ b/i686/sys/control.h
@@ -1,25 +1,24 @@
#pragma once
-static inline void
+static __inline__ void
abort()
{
/* Symbol h is already defined?
-asm volatile(R"(cli
+__asm__(R"(cli
h: hlt
jmp h)");
*/
- asm volatile(R"(cli
-hlt)");
+ __asm__("cli; hlt");
}
-static inline void
+static __inline__ void
enable_interrupts()
{
- asm volatile("sti");
+ __asm__("sti");
}
-static inline void
+static __inline__ void
disable_interrupts()
{
- asm volatile("cli");
+ __asm__("cli");
}