From efcf4501821e056dadf86a3dffaba662e131a137 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Sat, 4 Nov 2023 16:15:13 +0100 Subject: adjust the amount of diligence given into shooting stuff down --- include/main_exit.s | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/main_exit.s') 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 -- cgit v1.2.3