]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PlatformPei/Fv.c
2 Build FV related hobs for platform.
4 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include <Library/DebugLib.h>
17 #include <Library/HobLib.h>
18 #include <Library/PeiServicesLib.h>
19 #include <Library/PcdLib.h>
23 Perform a call-back into the SEC simulator to get address of the Firmware Hub
25 @param FfsHeader Ffs Header availible to every PEIM
26 @param PeiServices General purpose services available to every PEIM.
28 @retval EFI_SUCCESS Platform PEI FVs were initialized successfully.
36 DEBUG ((EFI_D_ERROR
, "Platform PEI Firmware Volume Initialization\n"));
39 (EFI_D_ERROR
, "Firmware Volume HOB: 0x%x 0x%x\n",
40 PcdGet32 (PcdOvmfMemFvBase
),
41 PcdGet32 (PcdOvmfMemFvSize
)
45 BuildFvHob (PcdGet32 (PcdOvmfMemFvBase
), PcdGet32 (PcdOvmfMemFvSize
));
48 // Create a memory allocation HOB.
50 BuildMemoryAllocationHob (
51 PcdGet32 (PcdOvmfMemFvBase
),
52 PcdGet32 (PcdOvmfMemFvSize
),