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:
parent
0dc6119576
commit
28ca4bd85d
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue