summaryrefslogtreecommitdiff
path: root/src/as/idt.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/as/idt.s')
-rw-r--r--src/as/idt.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/as/idt.s b/src/as/idt.s
new file mode 100644
index 0000000..e95b42b
--- /dev/null
+++ b/src/as/idt.s
@@ -0,0 +1,7 @@
+.global load_idt
+
+load_idt:
+ movl 4(%esp), %edx
+ lidt (%edx)
+ sti
+ ret