]>
Commit | Line | Data |
---|---|---|
577393c2 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 | |
577393c2 AB |
21 | #include <Pi/PiBootMode.h>\r |
22 | \r | |
23 | /**\r | |
24 | Return the current Boot Mode\r | |
25 | \r | |
26 | This function returns the boot reason on the platform\r | |
27 | \r | |
28 | @return Return the current Boot Mode of the platform\r | |
29 | \r | |
30 | **/\r | |
31 | EFI_BOOT_MODE\r | |
32 | ArmPlatformGetBootMode (\r | |
33 | VOID\r | |
34 | )\r | |
35 | {\r | |
36 | return BOOT_WITH_FULL_CONFIGURATION;\r | |
37 | }\r | |
38 | \r | |
39 | /**\r | |
40 | This function is called by PrePeiCore, in the SEC phase.\r | |
41 | **/\r | |
42 | RETURN_STATUS\r | |
43 | ArmPlatformInitialize (\r | |
44 | IN UINTN MpId\r | |
45 | )\r | |
46 | {\r | |
47 | //\r | |
48 | // We are relying on ArmPlatformInitializeSystemMemory () being called from\r | |
49 | // InitializeMemory (), which only occurs if the following feature is disabled\r | |
50 | //\r | |
51 | ASSERT (!FeaturePcdGet (PcdSystemMemoryInitializeInSec));\r | |
52 | return RETURN_SUCCESS;\r | |
53 | }\r | |
54 | \r | |
55 | VOID\r | |
56 | ArmPlatformInitializeSystemMemory (\r | |
57 | VOID\r | |
58 | )\r | |
59 | {\r | |
60 | }\r | |
61 | \r | |
62 | VOID\r | |
63 | ArmPlatformGetPlatformPpiList (\r | |
64 | OUT UINTN *PpiListSize,\r | |
65 | OUT EFI_PEI_PPI_DESCRIPTOR **PpiList\r | |
66 | )\r | |
67 | {\r | |
68 | *PpiListSize = 0;\r | |
69 | *PpiList = NULL;\r | |
70 | }\r |