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:
parent
315538245f
commit
9aa234cc47
3 changed files with 9 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue