// wdm.h
NTSTATUS KeRestoreFloatingPointState(
[in] PKFLOATING_SAVE FloatSave
);
View the official Windows Driver Kit DDI referenceNo description available.
The KeRestoreFloatingPointState routine restores the nonvolatile floating-point context saved by the preceding call to KeSaveFloatingPointState.
FloatSave [in]A pointer to the KFLOATING_SAVE structure that was passed in the preceding call to KeSaveFloatingPointState.
KeRestoreFloatingPointState returns STATUS_SUCCESS.
KeRestoreFloatingPointState is the reciprocal of KeSaveFloatingPointState.
Any routine that calls KeSaveFloatingPointState must call KeRestoreFloatingPointState before that routine returns control, and it must be running at the same IRQL as that from which the preceding call to KeSaveFloatingPointState occurred. Failure to meet either of these conditions causes a system bug check.
Kernel-mode driver code must ensure that calls to KeSaveFloatingPointState and KeRestoreFloatingPointState are properly nested. This is required so that, at each nesting level, the state that was restored by the KeRestoreFloatingPointState call is the same state that was saved by the corresponding KeSaveFloatingPointState call. To ensure proper nesting, kernel-mode driver code must follow these rules: