mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-06-10 06:46:59 -05:00
Windows Driver: correctly save and restore extended processor state when performing AVX operations on Windows 7 and later. Enhance readability of code handling save/restore of floating point state.
This commit is contained in:
@@ -260,6 +260,26 @@ typedef int BOOL;
|
||||
#define FALSE !TRUE
|
||||
#endif
|
||||
|
||||
typedef NTSTATUS (NTAPI *KeSaveExtendedProcessorStateFn) (
|
||||
__in ULONG64 Mask,
|
||||
PXSTATE_SAVE XStateSave
|
||||
);
|
||||
|
||||
|
||||
typedef VOID (NTAPI *KeRestoreExtendedProcessorStateFn) (
|
||||
PXSTATE_SAVE XStateSave
|
||||
);
|
||||
|
||||
extern NTSTATUS NTAPI KeSaveExtendedProcessorState (
|
||||
__in ULONG64 Mask,
|
||||
PXSTATE_SAVE XStateSave
|
||||
);
|
||||
|
||||
|
||||
extern VOID NTAPI KeRestoreExtendedProcessorState (
|
||||
PXSTATE_SAVE XStateSave
|
||||
);
|
||||
|
||||
#else /* !TC_WINDOWS_DRIVER */
|
||||
#if !defined(_UEFI)
|
||||
#define TCalloc malloc
|
||||
|
||||
Reference in New Issue
Block a user