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