Files
rosetta/sys/ld/arch/x86_64/start.S
T

21 lines
237 B
ArmAsm
Raw Normal View History

2026-02-19 19:30:07 +00:00
.code64
.global _ld_start
.type _ld_start, @function
2026-02-19 19:30:07 +00:00
.extern main
.type main, @function
2026-02-26 19:48:06 +00:00
.extern task_exit
.type task_exit, @function
2026-02-19 19:30:07 +00:00
_ld_start:
nop
mov $0xFFFFFFFF, %rbp
2026-02-19 19:30:07 +00:00
call main
2026-02-26 19:48:06 +00:00
mov %rax, %rdi
call task_exit
2026-02-19 19:30:07 +00:00
1: pause
jmp 1b