From e71c320154195ac19651168ca0b8c93078af3872 Mon Sep 17 00:00:00 2001 From: Agustin Gianni Date: Wed, 25 Jan 2023 19:22:35 +0000 Subject: [PATCH] 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. --- Kernel/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"