]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/RelocatableVirt.c
ArmVirtPkg/ArmVirtMemoryInitPeiLib: move to ArmVirtMemInfoLib
[mirror_edk2.git] / ArmVirtPkg / Library / ArmXenRelocatablePlatformLib / RelocatableVirt.c
1 /** @file
2 *
3 * Copyright (c) 2011-2013, ARM Limited. All rights reserved.
4 * Copyright (c) 2014, Linaro Limited. All rights reserved.
5 * Copyright (c) 2014, Red Hat, Inc.
6 *
7 *
8 * This program and the accompanying materials
9 * are licensed and made available under the terms and conditions of the BSD License
10 * which accompanies this distribution. The full text of the license may be found at
11 * http://opensource.org/licenses/bsd-license.php
12 *
13 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 *
16 **/
17
18 #include <Library/IoLib.h>
19 #include <Library/ArmPlatformLib.h>
20 #include <Library/DebugLib.h>
21 #include <Pi/PiBootMode.h>
22
23 /**
24 Return the current Boot Mode
25
26 This function returns the boot reason on the platform
27
28 @return Return the current Boot Mode of the platform
29
30 **/
31 EFI_BOOT_MODE
32 ArmPlatformGetBootMode (
33 VOID
34 )
35 {
36 return BOOT_WITH_FULL_CONFIGURATION;
37 }
38
39 /**
40 This function is called by PrePeiCore, in the SEC phase.
41 **/
42 RETURN_STATUS
43 ArmPlatformInitialize (
44 IN UINTN MpId
45 )
46 {
47 //
48 // We are relying on ArmPlatformInitializeSystemMemory () being called from
49 // InitializeMemory (), which only occurs if the following feature is disabled
50 //
51 ASSERT (!FeaturePcdGet (PcdSystemMemoryInitializeInSec));
52 return RETURN_SUCCESS;
53 }
54
55 VOID
56 ArmPlatformInitializeSystemMemory (
57 VOID
58 )
59 {
60 }
61
62 VOID
63 ArmPlatformGetPlatformPpiList (
64 OUT UINTN *PpiListSize,
65 OUT EFI_PEI_PPI_DESCRIPTOR **PpiList
66 )
67 {
68 *PpiListSize = 0;
69 *PpiList = NULL;
70 }