On 10/27/23 07:36, Jacque Lin via groups.io wrote: > --- > UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveState.c | 13 ------------- > 1 file changed, 13 deletions(-)
Why? (The commit message is empty.) Laszlo > > diff --git a/UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveState.c > b/UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveState.c > index 3315a6cc44..c4bf6ad4bb 100644 > --- a/UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveState.c > +++ b/UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveState.c > @@ -102,7 +102,6 @@ MmSaveStateReadRegister ( > OUT VOID *Buffer > > ) > > { > > - UINT32 SmmRevId; > > EFI_MM_SAVE_STATE_IO_INFO *IoInfo; > > AMD_SMRAM_SAVE_STATE_MAP *CpuSaveState; > > UINT8 DataWidth; > > @@ -124,18 +123,6 @@ MmSaveStateReadRegister ( > > > // Check for special EFI_MM_SAVE_STATE_REGISTER_IO > > if (Register == EFI_MM_SAVE_STATE_REGISTER_IO) { > > - // > > - // Get SMM Revision ID > > - // > > - MmSaveStateReadRegisterByIndex (CpuIndex, > AMD_MM_SAVE_STATE_REGISTER_SMMREVID_INDEX, sizeof (SmmRevId), &SmmRevId); > > - > > - // > > - // See if the CPU supports the IOMisc register in the save state > > - // > > - if (SmmRevId < AMD_SMM_MIN_REV_ID_X64) { > > - return EFI_NOT_FOUND; > > - } > > - > > // Check if IO Restart Dword [IO Trap] is valid or not using bit 1. > > if (!(CpuSaveState->x64.IO_DWord & 0x02u)) { > > return EFI_NOT_FOUND; > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110244): https://edk2.groups.io/g/devel/message/110244 Mute This Topic: https://groups.io/mt/102219140/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-