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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user