1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:05:08 +00:00

Kernel: Store FPU state when dispatching signal on aarch64

And make sure to also restore it in sys$sigreturn.
This commit is contained in:
Timon Kruiper 2023-04-02 16:25:52 +02:00 committed by Idan Horowitz
parent 4e00c63897
commit 00df1fc060
2 changed files with 0 additions and 4 deletions

View file

@ -1150,10 +1150,8 @@ DispatchSignalResult Thread::dispatch_signal(u8 signal)
VERIFY(stack % 16 == 0);
#if ARCH(X86_64)
// Save the FPU/SSE state
TRY(copy_value_on_user_stack(stack, fpu_state()));
#endif
TRY(push_value_on_user_stack(stack, pointer_to_ucontext));
TRY(push_value_on_user_stack(stack, pointer_to_signal_info));