diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2023-11-04 16:15:13 +0100 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2023-11-04 16:15:13 +0100 |
| commit | efcf4501821e056dadf86a3dffaba662e131a137 (patch) | |
| tree | 962258cdbe810af144ba7c6211fb5ec4dcc401e0 /include/main_exit.s | |
| parent | 25be2fb0d4bc8095771e02db3f33ebe45aa4376e (diff) | |
| download | uskel-master.tar.gz uskel-master.tar.bz2 | |
Diffstat (limited to 'include/main_exit.s')
| -rw-r--r-- | include/main_exit.s | 3 |
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 |
