From 276be2de38a6149d190553d706ab9809192c9b66 Mon Sep 17 00:00:00 2001 From: klu2 Date: Tue, 10 Jul 2007 14:51:34 +0000 Subject: 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 --- Nt32Pkg/WinNtFlashMapPei/FlashMap.c | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'Nt32Pkg/WinNtFlashMapPei') 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; -- cgit v1.2.3