mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +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:
parent
5d7331b4ed
commit
e71c320154
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue