1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00: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:
Agustin Gianni 2023-01-25 19:22:35 +00:00 committed by Andrew Kaster
parent 5d7331b4ed
commit e71c320154

View file

@ -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"