/*++\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
+Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
http://opensource.org/licenses/bsd-license.php \r
EFI_STATUS\r
EFIAPI\r
PeimInitializeUnixFwh (\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
- IN EFI_PEI_SERVICES **PeiServices\r
+ IN EFI_PEI_FILE_HANDLE FileHandle,\r
+ IN CONST EFI_PEI_SERVICES **PeiServices\r
)\r
/*++\r
\r
{\r
EFI_STATUS Status;\r
EFI_PEI_PPI_DESCRIPTOR *PpiDescriptor;\r
- UNIX_FWH_PPI *FwhPpi;\r
+ UNIX_FWH_PPI *FwhPpi;\r
EFI_PHYSICAL_ADDRESS FdBase;\r
+ EFI_PHYSICAL_ADDRESS FdFixUp;\r
EFI_FIRMWARE_VOLUME_HEADER *FvHeader;\r
UINT64 FdSize;\r
UINTN Index;\r
//\r
// Get information about all the FD's in the system\r
//\r
- Status = FwhPpi->UnixFwh (Index, &FdBase, &FdSize);\r
+ Status = FwhPpi->UnixFwh (Index, &FdBase, &FdSize, &FdFixUp);\r
if (!EFI_ERROR (Status)) {\r
//\r
// Assume the FD starts with an FV header\r
PcdGet32 (PcdFlashNvStorageFtwSpareSize) +\r
PcdGet32 (PcdUnixFlashNvStorageEventLogSize);\r
\r
- BuildFvHob (FdBase + PcdGet32 (PcdUnixFlashNvStorageVariableBase), FdSize);\r
+ BuildFvHob (FdFixUp + PcdGet64 (PcdUnixFlashNvStorageVariableBase), FdSize);\r
} else {\r
//\r
// For other FD's just map them in.\r