1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

Kernel: Implement lazy FPU state restore.

This commit is contained in:
Andreas Kling 2019-01-25 07:52:44 +01:00
parent 2279f5eaa6
commit dfdca9d2a7
8 changed files with 50 additions and 9 deletions

View file

@ -202,6 +202,17 @@ struct RegisterDumpWithExceptionCode {
word ss_if_crossRing;
} PACKED;
struct FPUState {
dword cwd;
dword swd;
dword twd;
dword fip;
dword fcs;
dword foo;
dword fos;
dword st[20];
};
inline constexpr dword pageBaseOf(dword address)
{
return address & 0xfffff000;