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