有KeSaveExtendedProcessorState BSOD

我用KeSaveExtendedProcessorState / KeRestoreExtendedProcessorState来保存和恢复在Windows 7 64位设备驱动程序之前的扩展处理器状态,我得到了BSD与KeSaveExtendedProcessorState,你可以帮助。

我使用RtlGetEnabledExtendedFeatures ((ULONG64)( – 1))获取启用的扩展function(返回值为0x3),并将其用作KeSaveExtendedProcessorState的第一个参数,并使用带有highAddress的MmAllocateContiguousMemory (sizeof(XSTATE_SAVE),highAddress) = 0xbfffffff分配用于保存扩展状态的非分页内存,并在KeSaveExtendedProcessorState之前将IRQL提升为DISPATCH_LEVEL。 我得到了以下消息蓝屏:

0: kd> !analyze -v ******************************************************************************* * * * Bugcheck Analysis * * * ******************************************************************************* INVALID_EXTENDED_PROCESSOR_STATE (131) Invalid combination of parameters was detected while saving or restoring extended processor state. Arguments: Arg1: 0000000000000000, Invalid feature mask was passed or extended processor state is not enabled. Arg2: 0000000000800000, Nonzero if extended state is enabled. Arg3: 0000000000000003, The low 32 bits of the feature mask. Arg4: 0000000000000000, The high 32 bits of the feature mask. 

我错过了什么?

谢谢。

问候,大卫