VariableKeyLib|SecurityPkg/Library/VariableKeyLibNull/VariableKeyLibNull.inf\r
RpmcLib|SecurityPkg/Library/RpmcLibNull/RpmcLibNull.inf\r
TcgEventLogRecordLib|SecurityPkg/Library/TcgEventLogRecordLib/TcgEventLogRecordLib.inf\r
+ MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf\r
\r
[LibraryClasses.ARM]\r
#\r
#include <Library/Tpm2DeviceLib.h>\r
#include <Library/Tpm2CommandLib.h>\r
#include <Library/UefiLib.h>\r
+#include <Library/MmUnblockMemoryLib.h>\r
\r
//\r
// Physical Presence Interface Version supported by Platform\r
ZeroMem ((VOID *)(UINTN)MemoryAddress, Size);\r
OpRegion->RegionOffset = (UINT32) (UINTN) MemoryAddress;\r
OpRegion->RegionLen = (UINT8) Size;\r
+ // Request to unblock this region from MM core\r
+ Status = MmUnblockMemoryRequest (MemoryAddress, EFI_SIZE_TO_PAGES (Size));\r
+ if (Status != EFI_UNSUPPORTED && EFI_ERROR (Status)) {\r
+ ASSERT_EFI_ERROR (Status);\r
+ }\r
break;\r
}\r
}\r