summaryrefslogtreecommitdiff
path: root/platform/boot.s
diff options
context:
space:
mode:
authordzwdz2021-07-09 18:27:47 +0200
committerdzwdz2021-07-09 18:27:47 +0200
commit9566dac198f685ef947d82facee0be182a77495e (patch)
tree1e09721f226bf3293e11f37777f2964a2c59d529 /platform/boot.s
parent5cfe5443e678e3354ed3488baea9c91cbb9e7697 (diff)
implement basic kernel panics
Diffstat (limited to 'platform/boot.s')
-rw-r--r--platform/boot.s5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/boot.s b/platform/boot.s
index 6052347..c2a06c3 100644
--- a/platform/boot.s
+++ b/platform/boot.s
@@ -27,7 +27,10 @@ _start:
mov $stack_top, %esp
call kmain
- cli /* disable interrupts */
+.global halt_cpu
+.type halt_cpu, @function
+halt_cpu:
+ cli
1: hlt
jmp 1b