mirror of
https://github.com/tailix/kernel.git
synced 2025-07-31 22:00:58 -04: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
|
.section .text
|
||||||
|
|
||||||
.global _start
|
.global _start
|
||||||
|
.global halt
|
||||||
|
|
||||||
.type _start, @function
|
.type _start, @function
|
||||||
|
.type halt, @function
|
||||||
|
|
||||||
_start:
|
_start:
|
||||||
mov $stack_top, %esp // Initialize stack
|
mov $stack_top, %esp // Initialize stack
|
||||||
|
|
||||||
|
@ -33,9 +37,11 @@ _start:
|
||||||
|
|
||||||
call main
|
call main
|
||||||
|
|
||||||
|
halt:
|
||||||
cli
|
cli
|
||||||
1:
|
1:
|
||||||
hlt
|
hlt
|
||||||
jmp 1b
|
jmp 1b
|
||||||
|
|
||||||
.size _start, . - _start
|
.size _start, . - _start
|
||||||
|
.size _halt, . - halt
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue