]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Mem/HeapGuard.h
MdeModulePkg/Core: allow HeapGuard even before CpuArchProtocol installed
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Mem / HeapGuard.h
index 30ac0e678f7784beee8f9bb2c5a620f08e96f603..8c34692439d37d37b6dd778ce589b0a5800635af 100644 (file)
@@ -389,6 +389,24 @@ AdjustPoolHeadF (
   IN EFI_PHYSICAL_ADDRESS    Memory\r
   );\r
 \r
   IN EFI_PHYSICAL_ADDRESS    Memory\r
   );\r
 \r
+/**\r
+  Check to see if the heap guard is enabled for page and/or pool allocation.\r
+\r
+  @return TRUE/FALSE.\r
+**/\r
+BOOLEAN\r
+IsHeapGuardEnabled (\r
+  VOID\r
+  );\r
+\r
+/**\r
+  Notify function used to set all Guard pages after CPU Arch Protocol installed.\r
+**/\r
+VOID\r
+HeapGuardCpuArchProtocolNotify (\r
+  VOID\r
+  );\r
+\r
 extern BOOLEAN mOnGuarding;\r
 \r
 #endif\r
 extern BOOLEAN mOnGuarding;\r
 \r
 #endif\r