mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +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
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/agustingianni Commit: https://github.com/SerenityOS/serenity/commit/e71c320154 Pull-request: https://github.com/SerenityOS/serenity/pull/17174 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/FireFox317 Reviewed-by: https://github.com/nico
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…
Reference in a new issue