summaryrefslogtreecommitdiff
path: root/kernel/cpu/arch_inst.s
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-03-17 20:55:34 +0100
committerAnton Kling <anton@kling.gg>2024-03-17 20:55:34 +0100
commit0dccff86e50dfe1555b8bc29862dba2b972a3705 (patch)
tree8d0c354c65278afdc3427bb52e1e63900ccdbc05 /kernel/cpu/arch_inst.s
parent2e8b474d4219e7faaac3823e73c8d528c2698a37 (diff)
stuff
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 $