Files
photon/libc/sys/horizon/machine/x86_64/crt0.s

19 lines
355 B
ArmAsm

.global _start
.type _start, @function
.extern __crt_init
.type __crt_init, @function
.extern main
.type main, @function
_start:
# Magenta aligns the stack to a page boundry and subtracts 8.
# Add 8 to restore 16-byte alignment
add $8, %rsp
call __crt_init
# unreachable; __crt_init() will call mx_task_kill()
.loop:
jmp .loop