diff options
author | Agustin Gianni <agustingianni@gmail.com> | 2023-01-25 19:22:35 +0000 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-02-02 01:52:52 -0700 |
commit | e71c320154195ac19651168ca0b8c93078af3872 (patch) | |
tree | 7f54ce13eda8e0a7275e53babc8b5ddba2d9f5b3 | |
parent | 5d7331b4ed76b1dff6681964ce534d64cf986ac3 (diff) | |
download | serenity-e71c320154195ac19651168ca0b8c93078af3872.zip |
Kernel: Change the way we call a syscall in signal_trampoline_dummy
The function signal_trampoline_dummy was using int 0x82 to call
SC_sigreturn. Since x86 is no longer supported, the correct way
to call a syscall is using the syscall instruction.
This paves the way to remove the syscall trap handling mechanism.
-rw-r--r-- | Kernel/Process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index c470168a84..4662821b98 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -413,7 +413,7 @@ void signal_trampoline_dummy() // Current stack state is just saved_rax, ucontext, signal_info, fpu_state. // syscall SC_sigreturn "mov rax, %P0\n" - "int 0x82\n" + "syscall\n" ".globl asm_signal_trampoline_end\n" "asm_signal_trampoline_end:\n" ".att_syntax" |