Lines Matching refs:CpuSaveState

143   QEMU_SMRAM_SAVE_STATE_MAP  *CpuSaveState = (QEMU_SMRAM_SAVE_STATE_MAP *)CpuState;  in SmmCpuFeaturesHookReturnFromSmm()  local
145 if ((CpuSaveState->x86.SMMRevId & 0xFFFF) == 0) { in SmmCpuFeaturesHookReturnFromSmm()
146 OriginalInstructionPointer = (UINT64)CpuSaveState->x86._EIP; in SmmCpuFeaturesHookReturnFromSmm()
147 CpuSaveState->x86._EIP = (UINT32)NewInstructionPointer; in SmmCpuFeaturesHookReturnFromSmm()
152 if ((CpuSaveState->x86.AutoHALTRestart & BIT0) != 0) { in SmmCpuFeaturesHookReturnFromSmm()
153 CpuSaveState->x86.AutoHALTRestart &= ~BIT0; in SmmCpuFeaturesHookReturnFromSmm()
156 OriginalInstructionPointer = CpuSaveState->x64._RIP; in SmmCpuFeaturesHookReturnFromSmm()
157 if ((CpuSaveState->x64.IA32_EFER & LMA) == 0) { in SmmCpuFeaturesHookReturnFromSmm()
158 CpuSaveState->x64._RIP = (UINT32)NewInstructionPointer32; in SmmCpuFeaturesHookReturnFromSmm()
160 CpuSaveState->x64._RIP = (UINT32)NewInstructionPointer; in SmmCpuFeaturesHookReturnFromSmm()
166 if ((CpuSaveState->x64.AutoHALTRestart & BIT0) != 0) { in SmmCpuFeaturesHookReturnFromSmm()
167 CpuSaveState->x64.AutoHALTRestart &= ~BIT0; in SmmCpuFeaturesHookReturnFromSmm()
555 QEMU_SMRAM_SAVE_STATE_MAP *CpuSaveState; in ReadSaveStateRegisterByIndex() local
557 CpuSaveState = (QEMU_SMRAM_SAVE_STATE_MAP *)gSmst->CpuSaveState[CpuIndex]; in ReadSaveStateRegisterByIndex()
559 if ((CpuSaveState->x86.SMMRevId & 0xFFFF) == 0) { in ReadSaveStateRegisterByIndex()
577 ASSERT(CpuSaveState != NULL); in ReadSaveStateRegisterByIndex()
578 CopyMem(Buffer, (UINT8 *)CpuSaveState + mSmmCpuWidthOffset[RegisterIndex].Offset32, Width); in ReadSaveStateRegisterByIndex()
597 …CopyMem(Buffer, (UINT8 *)CpuSaveState + mSmmCpuWidthOffset[RegisterIndex].Offset64Lo, MIN(4, Width… in ReadSaveStateRegisterByIndex()
602 …CopyMem((UINT8 *)Buffer + 4, (UINT8 *)CpuSaveState + mSmmCpuWidthOffset[RegisterIndex].Offset64Hi,… in ReadSaveStateRegisterByIndex()
636 QEMU_SMRAM_SAVE_STATE_MAP *CpuSaveState; in SmmCpuFeaturesReadSaveStateRegister() local
649 CpuSaveState = (QEMU_SMRAM_SAVE_STATE_MAP *)gSmst->CpuSaveState[CpuIndex]; in SmmCpuFeaturesReadSaveStateRegister()
654 if ((CpuSaveState->x86.SMMRevId & 0xFFFF) == 0) { in SmmCpuFeaturesReadSaveStateRegister()
709 QEMU_SMRAM_SAVE_STATE_MAP *CpuSaveState; in SmmCpuFeaturesWriteSaveStateRegister() local
735 CpuSaveState = (QEMU_SMRAM_SAVE_STATE_MAP *)gSmst->CpuSaveState[CpuIndex]; in SmmCpuFeaturesWriteSaveStateRegister()
747 if ((CpuSaveState->x86.SMMRevId & 0xFFFF) == 0) { in SmmCpuFeaturesWriteSaveStateRegister()
764 ASSERT (CpuSaveState != NULL); in SmmCpuFeaturesWriteSaveStateRegister()
765 CopyMem((UINT8 *)CpuSaveState + mSmmCpuWidthOffset[RegisterIndex].Offset32, Buffer, Width); in SmmCpuFeaturesWriteSaveStateRegister()
784 …CopyMem((UINT8 *)CpuSaveState + mSmmCpuWidthOffset[RegisterIndex].Offset64Lo, Buffer, MIN (4, Widt… in SmmCpuFeaturesWriteSaveStateRegister()
789 …CopyMem((UINT8 *)CpuSaveState + mSmmCpuWidthOffset[RegisterIndex].Offset64Hi, (UINT8 *)Buffer + 4,… in SmmCpuFeaturesWriteSaveStateRegister()