summaryrefslogtreecommitdiff
path: root/Nt32Pkg/WinNtFlashMapPei
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-10 14:51:34 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-10 14:51:34 +0000
commit276be2de38a6149d190553d706ab9809192c9b66 (patch)
tree9a7d8f6bb64872bffac379c370db926c684f7628 /Nt32Pkg/WinNtFlashMapPei
parent0a30ba0f560fb63eb411174298209dc9108e9ef1 (diff)
downloadedk2-platforms-276be2de38a6149d190553d706ab9809192c9b66.tar.xz
1) Use Dynamic Pcd for hold the base address and length of Flash-related block.
2) Remove flash map hob for Nt32Pkg platform git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3178 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtFlashMapPei')
-rw-r--r--Nt32Pkg/WinNtFlashMapPei/FlashMap.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/Nt32Pkg/WinNtFlashMapPei/FlashMap.c b/Nt32Pkg/WinNtFlashMapPei/FlashMap.c
index cc989c6ee3..ac09056676 100644
--- a/Nt32Pkg/WinNtFlashMapPei/FlashMap.c
+++ b/Nt32Pkg/WinNtFlashMapPei/FlashMap.c
@@ -216,21 +216,18 @@ Returns:
// PCD entry will get the information.
//
if (FlashHobData.AreaType == EFI_FLASH_AREA_EFI_VARIABLES) {
- // BUGBUG: Tool team does not enable dynamic PCD so comment out following code
- //PcdSet32 (PcdFlashNvStorageVariableBase, (UINT32) FlashHobData.SubAreaData.Base);
- //PcdSet32 (PcdFlashNvStorageVariableSize, (UINT32) FlashHobData.SubAreaData.Length);
+ PcdSet32 (PcdFlashNvStorageVariableBase, (UINT32) FlashHobData.SubAreaData.Base);
+ PcdSet32 (PcdFlashNvStorageVariableSize, (UINT32) FlashHobData.SubAreaData.Length);
}
if (FlashHobData.AreaType == EFI_FLASH_AREA_FTW_STATE) {
- // BUGBUG: Tool team does not enable dynamic PCD so comment out following code
- //PcdSet32 (PcdFlashNvStorageFtwWorkingBase, (UINT32) FlashHobData.SubAreaData.Base);
- //PcdSet32 (PcdFlashNvStorageFtwWorkingSize, (UINT32) FlashHobData.SubAreaData.Length);
+ PcdSet32 (PcdFlashNvStorageFtwWorkingBase, (UINT32) FlashHobData.SubAreaData.Base);
+ PcdSet32 (PcdFlashNvStorageFtwWorkingSize, (UINT32) FlashHobData.SubAreaData.Length);
}
if (FlashHobData.AreaType == EFI_FLASH_AREA_FTW_BACKUP) {
- // BUGBUG: Tool team does not enable dynamic PCD so comment out following code
- //PcdSet32 (PcdFlashNvStorageFtwSpareBase, (UINT32) FlashHobData.SubAreaData.Base);
- //PcdSet32 (PcdFlashNvStorageFtwSpareSize, (UINT32) FlashHobData.SubAreaData.Length);
+ PcdSet32 (PcdFlashNvStorageFtwSpareBase, (UINT32) FlashHobData.SubAreaData.Base);
+ PcdSet32 (PcdFlashNvStorageFtwSpareSize, (UINT32) FlashHobData.SubAreaData.Length);
}
switch (FlashHobData.AreaType) {
@@ -265,11 +262,11 @@ Returns:
break;
}
- BuildGuidDataHob (
- &gEfiFlashMapHobGuid,
- &FlashHobData,
- sizeof (EFI_FLASH_AREA_HOB_DATA)
- );
+ //BuildGuidDataHob (
+ // &gEfiFlashMapHobGuid,
+ // &FlashHobData,
+ // sizeof (EFI_FLASH_AREA_HOB_DATA)
+ // );
}
return EFI_SUCCESS;