[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.
This commit is contained in:
George Bișoc 2022-01-25 13:17:49 +01:00
parent d88cd0eefc
commit c020966091
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -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