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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/i686/sys/control.h b/i686/sys/control.h
index a40a67f..0231236 100644
--- a/i686/sys/control.h
+++ b/i686/sys/control.h
@@ -7,3 +7,15 @@ abort()
h: hlt
jmp h)");
}
+
+static void
+enable_interrupts()
+{
+ asm volatile("sti");
+}
+
+static void
+disable_interrupts()
+{
+ asm volatile("cli");
+}