aboutsummaryrefslogtreecommitdiff
path: root/include/main_exit.s
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-11-04 16:15:13 +0100
committerMirek Kratochvil <exa.exa@gmail.com>2023-11-04 16:15:13 +0100
commitefcf4501821e056dadf86a3dffaba662e131a137 (patch)
tree962258cdbe810af144ba7c6211fb5ec4dcc401e0 /include/main_exit.s
parent25be2fb0d4bc8095771e02db3f33ebe45aa4376e (diff)
downloaduskel-efcf4501821e056dadf86a3dffaba662e131a137.tar.gz
uskel-efcf4501821e056dadf86a3dffaba662e131a137.tar.bz2
adjust the amount of diligence given into shooting stuff downHEADmaster
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