mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-19 14:23:34 +00:00
44fb71261a
Cloned threads (basically, forked processes) inherit the complete FPU state of their origin thread. There was a bug in the lazy FPU state save/restore mechanism where a cloned thread would believe it had a buffer full of valid FPU state (because the inherited flag said so) but the origin thread had never actually copied any FPU state into it. This patch fixes that by forcing out an FPU state save after doing the initial FPU initialization (FNINIT) in a thread. :^) |
||
---|---|---|
.. | ||
CPU.cpp | ||
CPU.h | ||
PIC.cpp | ||
PIC.h | ||
PIT.cpp | ||
PIT.h |