#include <Guid/EventGroup.h>\r
\r
#include <Guid/MemoryAttributesTable.h>\r
-#include <Guid/PropertiesTable.h>\r
\r
#include "DxeMain.h"\r
\r
OUT UINT32 *DescriptorVersion\r
);\r
\r
-extern EFI_PROPERTIES_TABLE mPropertiesTable;\r
+BOOLEAN mMemoryAttributesTableEnable = TRUE;\r
EFI_MEMORY_ATTRIBUTES_TABLE *mMemoryAttributesTable = NULL;\r
BOOLEAN mMemoryAttributesTableReadyToBoot = FALSE;\r
\r
return;\r
}\r
\r
- if ((mPropertiesTable.MemoryProtectionAttribute & EFI_PROPERTIES_RUNTIME_MEMORY_PROTECTION_NON_EXECUTABLE_PE_DATA) == 0) {\r
- DEBUG ((EFI_D_VERBOSE, "MemoryProtectionAttribute NON_EXECUTABLE_PE_DATA is not set, "));\r
+ if (!mMemoryAttributesTableEnable) {\r
+ DEBUG ((DEBUG_VERBOSE, "Cannot install Memory Attributes Table "));\r
DEBUG ((EFI_D_VERBOSE, "because Runtime Driver Section Alignment is not %dK.\n", RUNTIME_PAGE_ALLOCATION_GRANULARITY >> 10));\r
return ;\r
}\r