summaryrefslogtreecommitdiff
path: root/kernel/cpu/arch_inst.s
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpu/arch_inst.s')
-rw-r--r--kernel/cpu/arch_inst.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/cpu/arch_inst.s b/kernel/cpu/arch_inst.s
index aaf34b6..a993172 100644
--- a/kernel/cpu/arch_inst.s
+++ b/kernel/cpu/arch_inst.s
@@ -9,6 +9,7 @@
.global set_cr3
.global get_cr3
.global enable_paging
+.global wait_for_interrupt
get_current_sp:
mov eax, esp
@@ -30,6 +31,11 @@ set_sbp:
mov ebp, eax
ret
+wait_for_interrupt:
+ sti
+ hlt
+ ret
+
halt:
hlt
jmp $