VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/PlatformPei/Fv.c@ 58174

Last change on this file since 58174 was 48674, checked in by vboxsync, 11 years ago

EFI: Export newly imported tinaocore UEFI sources to OSE.

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1/** @file
2 Build FV related hobs for platform.
3
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
9
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.
12
13**/
14
15#include "PiPei.h"
16#include <Library/DebugLib.h>
17#include <Library/HobLib.h>
18#include <Library/PeiServicesLib.h>
19#include <Library/PcdLib.h>
20
21
22/**
23 Perform a call-back into the SEC simulator to get address of the Firmware Hub
24
25 @param FfsHeader Ffs Header availible to every PEIM
26 @param PeiServices General purpose services available to every PEIM.
27
28 @retval EFI_SUCCESS Platform PEI FVs were initialized successfully.
29
30**/
31EFI_STATUS
32PeiFvInitialization (
33 VOID
34 )
35{
36 DEBUG ((EFI_D_ERROR, "Platform PEI Firmware Volume Initialization\n"));
37
38 DEBUG (
39 (EFI_D_ERROR, "Firmware Volume HOB: 0x%x 0x%x\n",
40 PcdGet32 (PcdOvmfMemFvBase),
41 PcdGet32 (PcdOvmfMemFvSize)
42 )
43 );
44
45 BuildFvHob (PcdGet32 (PcdOvmfMemFvBase), PcdGet32 (PcdOvmfMemFvSize));
46
47 //
48 // Create a memory allocation HOB.
49 //
50 BuildMemoryAllocationHob (
51 PcdGet32 (PcdOvmfMemFvBase),
52 PcdGet32 (PcdOvmfMemFvSize),
53 EfiBootServicesData
54 );
55
56 return EFI_SUCCESS;
57}
58
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette