aboutsummaryrefslogtreecommitdiff
path: root/include/main_exit.s
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-11-01 18:25:26 +0100
committerMirek Kratochvil <exa.exa@gmail.com>2023-11-01 18:25:26 +0100
commit1909e97d4615045e707710a2aaeae8bf702a8355 (patch)
treeacba7fd278ef27dbdb749f936b38a812a056176a /include/main_exit.s
parent32d71ef9f25b4cebb2ae95b4f528bbc02f62ea31 (diff)
parent970ffb4684dbd88bd54e909820bbc5a66a87b18d (diff)
downloaduskel-1909e97d4615045e707710a2aaeae8bf702a8355.tar.gz
uskel-1909e97d4615045e707710a2aaeae8bf702a8355.tar.bz2
Merge branch 'gc-attempt-1'
Diffstat (limited to 'include/main_exit.s')
-rw-r--r--include/main_exit.s7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/main_exit.s b/include/main_exit.s
index 1a38e5a..5ce6c76 100644
--- a/include/main_exit.s
+++ b/include/main_exit.s
@@ -1,13 +1,10 @@
.ifndef _main_exit_s_file
_main_exit_s_file:
-# exitcode -> | cont (unused, should be 0) |
+# exitcode -> ||
.thunkcode main_exit
- mov 010(%rsi), %rdi # result goes to syscall exitcode
+ mov 010(%rsi), %rdi # result INT 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