]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointer.c
BaseTools: remove unneeded function call
[mirror_edk2.git] / ArmPlatformPkg / Library / PrePiHobListPointerLib / PrePiHobListPointer.c
... / ...
CommitLineData
1/** @file\r
2*\r
3* Copyright (c) 2011, ARM Limited. All rights reserved.\r
4*\r
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
12*\r
13**/\r
14\r
15#include <PiPei.h>\r
16#include <Library/ArmLib.h>\r
17#include <Library/PrePiHobListPointerLib.h>\r
18#include <Library/DebugLib.h>\r
19\r
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
34 return (VOID *)ArmReadTpidrurw();\r
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
43\r
44**/\r
45EFI_STATUS\r
46EFIAPI\r
47PrePeiSetHobList (\r
48 IN VOID *HobList\r
49 )\r
50{\r
51 ArmWriteTpidrurw((UINTN)HobList);\r
52\r
53 return EFI_SUCCESS;\r
54}\r