aboutsummaryrefslogtreecommitdiff
path: root/include/main_exit.s
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-08-11 22:30:22 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-08-11 22:30:22 +0200
commit5184299c7dfddeba4d2d2ba95d390040368f9736 (patch)
treee3debfdc11073435a5459266d6dcec61b1fc30b1 /include/main_exit.s
parent74cad993376dc269e8389fbf150be9ecc36890c7 (diff)
downloaduskel-5184299c7dfddeba4d2d2ba95d390040368f9736.tar.gz
uskel-5184299c7dfddeba4d2d2ba95d390040368f9736.tar.bz2
ap aps
Diffstat (limited to 'include/main_exit.s')
-rw-r--r--include/main_exit.s7
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