14 lines
350 B
ArmAsm
14 lines
350 B
ArmAsm
.ifndef _main_exit_s_file
|
|
_main_exit_s_file:
|
|
|
|
# exitcode -> | cont (unused, should be 0) |
|
|
.thunkcode main_exit
|
|
mov 010(%rsi), %rdi # result goes to syscall exitcode
|
|
mov $60, %rax # exit=60
|
|
syscall # exit %rdi
|
|
|
|
# TODO this is a "case" kind of thunk so it's quite likely that it really
|
|
# doesn't need the continuation.
|
|
|
|
.endif # _main_exit_s_file
|