mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-15 03:16:44 +02:00
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.
This commit is contained in:
committed by
Andrew Kaster
parent
5d7331b4ed
commit
e71c320154
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user