]>
Commit | Line | Data |
---|---|---|
3c4b742c | 1 | /** @file\r |
2 | *\r | |
3 | * Copyright (c) 2011, ARM Limited. All rights reserved.\r | |
3c4b742c | 4 | *\r |
3402aac7 RC |
5 | * This program and the accompanying materials\r |
6 | * are licensed and made available under the terms and conditions of the BSD License\r | |
7 | * which accompanies this distribution. The full text of the license may be found at\r | |
8 | * http://opensource.org/licenses/bsd-license.php\r | |
9 | *\r | |
10 | * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
3c4b742c | 12 | *\r |
13 | **/\r | |
14 | \r | |
15 | #include <PiPei.h>\r | |
183dda94 | 16 | #include <Library/ArmLib.h>\r |
3c4b742c | 17 | #include <Library/PrePiHobListPointerLib.h>\r |
18 | #include <Library/DebugLib.h>\r | |
3c4b742c | 19 | \r |
3c4b742c | 20 | /**\r |
21 | Returns the pointer to the HOB list.\r | |
22 | \r | |
23 | This function returns the pointer to first HOB in the list.\r | |
24 | \r | |
25 | @return The pointer to the HOB list.\r | |
26 | \r | |
27 | **/\r | |
28 | VOID *\r | |
29 | EFIAPI\r | |
30 | PrePeiGetHobList (\r | |
31 | VOID\r | |
32 | )\r | |
33 | {\r | |
183dda94 | 34 | return (VOID *)ArmReadTpidrurw();\r |
3c4b742c | 35 | }\r |
36 | \r | |
37 | \r | |
38 | \r | |
39 | /**\r | |
40 | Updates the pointer to the HOB list.\r | |
41 | \r | |
42 | @param HobList Hob list pointer to store\r | |
3402aac7 | 43 | \r |
3c4b742c | 44 | **/\r |
45 | EFI_STATUS\r | |
46 | EFIAPI\r | |
47 | PrePeiSetHobList (\r | |
48 | IN VOID *HobList\r | |
49 | )\r | |
50 | {\r | |
183dda94 | 51 | ArmWriteTpidrurw((UINTN)HobList);\r |
e1808603 | 52 | \r |
53 | return EFI_SUCCESS;\r | |
3c4b742c | 54 | }\r |