19 lines
264 B
ArmAsm
19 lines
264 B
ArmAsm
.global hos_start
|
|
.type hos_start, @function
|
|
hos_start:
|
|
/* Set stack pointer. */
|
|
mov $_stack_end, %esp
|
|
|
|
/* Jump to C. */
|
|
push $0
|
|
push $0
|
|
push $0
|
|
push %ebx
|
|
call hos_main
|
|
|
|
cli
|
|
1: hlt
|
|
jmp 1b
|
|
|
|
.size hos_start, . - hos_start
|