https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c020966091e85cfe1f827f...
commit c020966091e85cfe1f827f0b7d40be23c416317c Author: George Bișoc george.bisoc@reactos.org AuthorDate: Tue Jan 25 13:17:49 2022 +0100 Commit: George Bișoc george.bisoc@reactos.org CommitDate: Tue May 24 18:39:45 2022 +0200
[NTOS:KE] Implement the internal FPU state context structure
This is needed to store FPU state information when saving or restoring the floating point state of a system due to a call to KeSaveFloatingPointState or KeRestoreFloatingPointState. --- ntoskrnl/include/internal/i386/ke.h | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/ntoskrnl/include/internal/i386/ke.h b/ntoskrnl/include/internal/i386/ke.h index 95242fdbfa0..cdeba9ab87d 100644 --- a/ntoskrnl/include/internal/i386/ke.h +++ b/ntoskrnl/include/internal/i386/ke.h @@ -235,6 +235,17 @@ typedef struct _LARGE_IDENTITY_MAP PVOID PagesList[30]; } LARGE_IDENTITY_MAP, *PLARGE_IDENTITY_MAP;
+// +// Floating Point Internal Context Structure +// +typedef struct _FLOATING_SAVE_CONTEXT +{ + PKTHREAD CurrentThread; + KIRQL OldNpxIrql; + PFX_SAVE_AREA Buffer; + PFX_SAVE_AREA PfxSaveArea; +} FLOATING_SAVE_CONTEXT, *PFLOATING_SAVE_CONTEXT; + /* Diable interrupts and return whether they were enabled before */ FORCEINLINE BOOLEAN