diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-25 07:52:44 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-25 07:52:44 +0100 |
commit | dfdca9d2a719928728e2a593b619828e051c2739 (patch) | |
tree | ae55344963025a40aebd57ad091fff2d3737b6e4 /Kernel/i386.h | |
parent | 2279f5eaa67d9b7a783853e145f44a192d78d82a (diff) | |
download | serenity-dfdca9d2a719928728e2a593b619828e051c2739.zip |
Kernel: Implement lazy FPU state restore.
Diffstat (limited to 'Kernel/i386.h')
-rw-r--r-- | Kernel/i386.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Kernel/i386.h b/Kernel/i386.h index d48c7b481e..0b7ff5dbeb 100644 --- a/Kernel/i386.h +++ b/Kernel/i386.h @@ -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; |