diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c b/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c index fa6f2f1eb9..b0c43f6f19 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c @@ -605,16 +605,6 @@ SmmIplDxeDispatchEventNotify ( // Print debug message that the SMRAM window is now closed. // DEBUG ((DEBUG_INFO, "SMM IPL closed SMRAM window\n")); - - // - // Lock the SMRAM (Note: Locking SMRAM may not be supported on all platforms) - // - mSmmAccess->Lock (mSmmAccess); - - // - // Print debug message that the SMRAM window is now locked - // - DEBUG ((DEBUG_INFO, "SMM IPL locked SMRAM window\n")); } } @@ -708,7 +698,7 @@ SmmIplReadyToLockEventNotify ( // Lock the SMRAM (Note: Locking SMRAM may not be supported on all platforms) // mSmmAccess->Lock (mSmmAccess); - + // // Close protocol and event notification events that do not apply after the // DXE SMM Ready To Lock Protocol has been installed or the Ready To Boot