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:
parent
2279f5eaa6
commit
dfdca9d2a7
8 changed files with 50 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue