diff options
Diffstat (limited to 'include/main_exit.s')
| -rw-r--r-- | include/main_exit.s | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/main_exit.s b/include/main_exit.s index a38c5e5..1a38e5a 100644 --- a/include/main_exit.s +++ b/include/main_exit.s @@ -3,8 +3,11 @@ _main_exit_s_file: # exitcode -> | cont (unused, should be 0) | .thunkcode main_exit - mov 0x8(%rsi), %rdi # result to syscall exitcode - mov $0x3c, %rax # syscall 60 + 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 |
