]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/SmmAccess/SmmAccessPei.c
OvmfPkg/SmmAccess: close and lock SMRAM at default SMBASE
[mirror_edk2.git] / OvmfPkg / SmmAccess / SmmAccessPei.c
index d67850651c5835618e36b6cde4fabaab00128332..c8bbc17e907a11af85ac59df70f83184b92f8947 100644 (file)
@@ -372,6 +372,12 @@ SmmAccessPeiEntryPoint (
   CopyMem (GuidHob, &SmramMap[DescIdxSmmS3ResumeState],\r
     sizeof SmramMap[DescIdxSmmS3ResumeState]);\r
 \r
+  //\r
+  // SmramAccessLock() depends on "mQ35SmramAtDefaultSmbase"; init the latter\r
+  // just before exposing the former via PEI_SMM_ACCESS_PPI.Lock().\r
+  //\r
+  InitQ35SmramAtDefaultSmbase ();\r
+\r
   //\r
   // We're done. The next step should succeed, but even if it fails, we can't\r
   // roll back the above BuildGuidHob() allocation, because PEI doesn't support\r