]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointer.c
ArmPlatformPkg: Rectify file modes
[mirror_edk2.git] / ArmPlatformPkg / Library / PrePiHobListPointerLib / PrePiHobListPointer.c
CommitLineData
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
28VOID *\r
29EFIAPI\r
30PrePeiGetHobList (\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
45EFI_STATUS\r
46EFIAPI\r
47PrePeiSetHobList (\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