From 5184299c7dfddeba4d2d2ba95d390040368f9736 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Fri, 11 Aug 2023 22:30:22 +0200 Subject: ap aps --- include/main_exit.s | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/main_exit.s') 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 -- cgit v1.2.3