]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Pei/FlashMap/FlashMap.c
Variable PEIM use to PCD entry to get the base address of NV Storegae region.
[mirror_edk2.git] / EdkNt32Pkg / Pei / FlashMap / FlashMap.c
index b459257285e7341fc2514d9d7e3596e7124d3c44..54dc137a765cac4200b84db1dcc0db800a70113c 100644 (file)
@@ -202,6 +202,12 @@ Returns:
                         &gEfiFirmwareVolumeBlockProtocolGuid,\r
                         sizeof (EFI_GUID)\r
                         );\r
+\r
+      //\r
+      // We also update a PCD entry so that any driver that depend on\r
+      // PCD entry PcdFlashNvStorageVariableBase will get the information.\r
+      //\r
+      PcdSet32 (PcdFlashNvStorageVariableBase, (UINT32) FlashHobData.SubAreaData.Base);\r
       break;\r
 \r
     default:\r