aboutsummaryrefslogtreecommitdiff
path: root/include/main_exit.s
diff options
context:
space:
mode:
Diffstat (limited to 'include/main_exit.s')
-rw-r--r--include/main_exit.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/main_exit.s b/include/main_exit.s
index 5ce6c76..3982e32 100644
--- a/include/main_exit.s
+++ b/include/main_exit.s
@@ -6,5 +6,8 @@ _main_exit_s_file:
mov 010(%rsi), %rdi # result INT goes to syscall exitcode
mov $60, %rax # exit=60
syscall # exit %rdi
+ # syscall might also die; at that point let's die more elaborately
+ mov 0, %rax
+ jmp main_exit
.endif # _main_exit_s_file