]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformPei/MemDetect.c
OvmfPkg: PlatformPei: protect SEC's GUIDed section handler table thru S3
[mirror_edk2.git] / OvmfPkg / PlatformPei / MemDetect.c
index 15b279e4456c525ab18912bb4aafa096ad0204a3..4c22679c7af95aa4c67ea931f4fa7239eb29cd3e 100644 (file)
@@ -205,6 +205,15 @@ InitializeRamRegions (
       EfiACPIMemoryNVS\r
       );\r
 \r
+    //\r
+    // SEC stores its table of GUIDed section handlers here.\r
+    //\r
+    BuildMemoryAllocationHob (\r
+      PcdGet64 (PcdGuidedExtractHandlerTableAddress),\r
+      PcdGet32 (PcdGuidedExtractHandlerTableSize),\r
+      EfiACPIMemoryNVS\r
+      );\r
+\r
 #ifdef MDE_CPU_X64\r
     //\r
     // Reserve the initial page tables built by the reset vector code.\r