summaryrefslogtreecommitdiff
path: root/Kernel/i386.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-25 07:52:44 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-25 07:52:44 +0100
commitdfdca9d2a719928728e2a593b619828e051c2739 (patch)
treeae55344963025a40aebd57ad091fff2d3737b6e4 /Kernel/i386.h
parent2279f5eaa67d9b7a783853e145f44a192d78d82a (diff)
downloadserenity-dfdca9d2a719928728e2a593b619828e051c2739.zip
Kernel: Implement lazy FPU state restore.
Diffstat (limited to 'Kernel/i386.h')
-rw-r--r--Kernel/i386.h11
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;