aboutsummaryrefslogtreecommitdiff
path: root/include/main_exit.s
blob: 5ce6c7685db3dd5977823f9935a16b5e93cab1ff (plain)
1
2
3
4
5
6
7
8
9
10
.ifndef _main_exit_s_file
_main_exit_s_file:

# exitcode -> ||
.thunkcode main_exit
	mov 010(%rsi), %rdi # result INT goes to syscall exitcode
	mov $60, %rax  # exit=60
	syscall # exit %rdi

.endif # _main_exit_s_file