summaryrefslogtreecommitdiff
path: root/Nt32Pkg/WinNtFirmwareVolumePei
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-11-30 09:18:29 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-11-30 09:18:29 +0000
commit706e75346786ac8abc02ba018e39b8765ef86abc (patch)
tree6590c9a74c13b87f44843b30e737908d21ed386b /Nt32Pkg/WinNtFirmwareVolumePei
parent19648468162b85f5b40d9ff167b38e9eb8147a34 (diff)
downloadedk2-platforms-706e75346786ac8abc02ba018e39b8765ef86abc.tar.xz
Modify minor error in Nt32Pkg.dsc
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4349 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtFirmwareVolumePei')
-rw-r--r--Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf1
-rw-r--r--Nt32Pkg/WinNtFirmwareVolumePei/WinntFwh.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf b/Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
index d8811145e2..444ffbd79a 100644
--- a/Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
+++ b/Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
@@ -57,6 +57,7 @@
gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogBase
gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogSize
gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageVariableBase
+ gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwSpareBase
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
diff --git a/Nt32Pkg/WinNtFirmwareVolumePei/WinntFwh.c b/Nt32Pkg/WinNtFirmwareVolumePei/WinntFwh.c
index b5afe106ee..e78059385a 100644
--- a/Nt32Pkg/WinNtFirmwareVolumePei/WinntFwh.c
+++ b/Nt32Pkg/WinNtFirmwareVolumePei/WinntFwh.c
@@ -117,14 +117,16 @@ Returns:
// Hard code the address of the spare block and variable services.
// Assume it's a hard coded offset from FV0 in FD0.
//
- FdBase = FdBase + PcdGet32 (PcdWinNtFlashNvStorageVariableBase);
+ // FdBase = FdBase + PcdGet32 (PcdWinNtFlashNvStorageVariableBase);
FdSize =
PcdGet32 (PcdFlashNvStorageVariableSize) +
PcdGet32 (PcdFlashNvStorageFtwWorkingSize) +
PcdGet32 (PcdFlashNvStorageFtwSpareSize) +
PcdGet32 (PcdWinNtFlashNvStorageEventLogSize);
- BuildFvHob (FdBase, FdSize);
+ BuildFvHob (FdBase + PcdGet32 (PcdWinNtFlashNvStorageVariableBase), FdSize);
+
+ BuildFvHob (FdBase + PcdGet32 (PcdWinNtFlashNvStorageFtwSpareBase), PcdGet32 (PcdFlashNvStorageFtwSpareSize));
} else {
//
// For other FD's just map them in.