1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:18:13 +00:00

Kernel: Reset FPU state on exec()

This commit is contained in:
Andreas Kling 2020-02-18 13:44:27 +01:00
parent 315538245f
commit 9aa234cc47
3 changed files with 9 additions and 2 deletions

View file

@ -992,6 +992,7 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
m_master_tls_alignment = master_tls_alignment;
new_main_thread->make_thread_specific_region({});
new_main_thread->reset_fpu_state();
memset(&tss, 0, sizeof(TSS32));
tss.iomapbase = sizeof(TSS32);