1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00

Add function "halt"

This commit is contained in:
Braiden Vasco 2017-11-04 02:35:17 +00:00
parent 0dc6119576
commit 28ca4bd85d

View file

@ -21,7 +21,11 @@ stack_top:
.section .text
.global _start
.global halt
.type _start, @function
.type halt, @function
_start:
mov $stack_top, %esp // Initialize stack
@ -33,9 +37,11 @@ _start:
call main
halt:
cli
1:
hlt
jmp 1b
.size _start, . - _start
.size _halt, . - halt