acadia/zion/usr/crt0.s
Drew Galbraith 23895b5c6c Spawn Processes using memory primitives rather than and elf loader.
This allows us to remove the temporary syscall for that style of process
spawn.
2023-06-07 00:04:53 -07:00

13 lines
153 B
ArmAsm

.text
.global _start
_start:
call main
call _exit
_exit:
// EXIT syscall.
mov $1, %rdi
// Return code as a param.
mov %rax, %rsi
syscall