VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/PlatformPei/Fv.c@ 42406

Last change on this file since 42406 was 42405, checked in by vboxsync, 13 years ago

EFI/Ovmf: PlatformPei (replacement of ovmf_pei patch) derived from UDK2010.SR1/Ovmf r13361.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/* $Id: Fv.c 42405 2012-07-26 07:04:37Z vboxsync $ */
2/** @file
3 * Fv.c
4 */
5
6/*
7 * Copyright (C) 2012 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18/** @file
19 Build FV related hobs for platform.
20
21 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
22 This program and the accompanying materials
23 are licensed and made available under the terms and conditions of the BSD License
24 which accompanies this distribution. The full text of the license may be found at
25 http://opensource.org/licenses/bsd-license.php
26
27 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
28 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
29
30**/
31
32#include "PiPei.h"
33#include <Library/DebugLib.h>
34#include <Library/HobLib.h>
35#include <Library/PeiServicesLib.h>
36#include <Library/PcdLib.h>
37
38
39/**
40 Perform a call-back into the SEC simulator to get address of the Firmware Hub
41
42 @param FfsHeader Ffs Header availible to every PEIM
43 @param PeiServices General purpose services available to every PEIM.
44
45 @retval EFI_SUCCESS Platform PEI FVs were initialized successfully.
46
47**/
48EFI_STATUS
49PeiFvInitialization (
50 VOID
51 )
52{
53 DEBUG ((EFI_D_ERROR, "Platform PEI Firmware Volume Initialization\n"));
54
55 DEBUG (
56 (EFI_D_ERROR, "Firmware Volume HOB: 0x%x 0x%x\n",
57 PcdGet32 (PcdOvmfMemFvBase),
58 PcdGet32 (PcdOvmfMemFvSize)
59 )
60 );
61
62 BuildFvHob (PcdGet32 (PcdOvmfMemFvBase), PcdGet32 (PcdOvmfMemFvSize));
63
64 //
65 // Create a memory allocation HOB.
66 //
67 BuildMemoryAllocationHob (
68 PcdGet32 (PcdOvmfMemFvBase),
69 PcdGet32 (PcdOvmfMemFvSize),
70 EfiBootServicesData
71 );
72
73 return EFI_SUCCESS;
74}
75
Note: See TracBrowser for help on using the repository browser.

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