]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointer.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ArmPlatformPkg / Library / PrePiHobListPointerLib / PrePiHobListPointer.c
CommitLineData
3c4b742c 1/** @file\r
5a5440d0
PG
2\r
3 Copyright (c) 2011, ARM Limited. All rights reserved.\r
4\r
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
3c4b742c 7**/\r
8\r
9#include <PiPei.h>\r
183dda94 10#include <Library/ArmLib.h>\r
3c4b742c 11#include <Library/PrePiHobListPointerLib.h>\r
12#include <Library/DebugLib.h>\r
3c4b742c 13\r
3c4b742c 14/**\r
15 Returns the pointer to the HOB list.\r
16\r
17 This function returns the pointer to first HOB in the list.\r
18\r
19 @return The pointer to the HOB list.\r
20\r
21**/\r
22VOID *\r
23EFIAPI\r
24PrePeiGetHobList (\r
25 VOID\r
26 )\r
27{\r
40b0b23e 28 return (VOID *)ArmReadTpidrurw ();\r
3c4b742c 29}\r
30\r
3c4b742c 31/**\r
32 Updates the pointer to the HOB list.\r
33\r
34 @param HobList Hob list pointer to store\r
3402aac7 35\r
3c4b742c 36**/\r
37EFI_STATUS\r
38EFIAPI\r
39PrePeiSetHobList (\r
40b0b23e 40 IN VOID *HobList\r
3c4b742c 41 )\r
42{\r
40b0b23e 43 ArmWriteTpidrurw ((UINTN)HobList);\r
e1808603 44\r
45 return EFI_SUCCESS;\r
3c4b742c 46}\r