]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/DxeIplPeim/DxeIpl.h
MdeModulePkg/DxeIpl: Implement NULL pointer detection
[mirror_edk2.git] / MdeModulePkg / Core / DxeIplPeim / DxeIpl.h
index 72d2532f50a0c08e7afb87ddb4da74162522b80d..ecf186667a1c03375ab40a1f9a89f704377ef937 100644 (file)
@@ -240,4 +240,29 @@ Decompress (
   OUT       UINTN                   *OutputSize\r
   );\r
 \r
+/**\r
+   Clear legacy memory located at the first 4K-page.\r
+\r
+   This function traverses the whole HOB list to check if memory from 0 to 4095\r
+   exists and has not been allocated, and then clear it if so.\r
+\r
+   @param HoStart         The start of HobList passed to DxeCore.\r
+\r
+**/\r
+VOID\r
+ClearFirst4KPage (\r
+  IN  VOID *HobStart\r
+  );\r
+\r
+/**\r
+   Return configure status of NULL pointer detection feature\r
+\r
+   @return TRUE   NULL pointer detection feature is enabled\r
+   @return FALSE  NULL pointer detection feature is disabled\r
+**/\r
+BOOLEAN\r
+IsNullDetectionEnabled (\r
+  VOID\r
+  );\r
+\r
 #endif\r