]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointer.c
3 * Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
4 * SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/PrePiHobListPointerLib.h>
10 #include <Library/DebugLib.h>
11 #include <Library/HobLib.h>
15 Returns the pointer to the HOB list.
17 This function returns the pointer to first HOB in the list.
19 @return The pointer to the HOB list.
28 TDX_WORK_AREA
*TdxWorkArea
;
30 TdxWorkArea
= (TDX_WORK_AREA
*)(UINTN
)FixedPcdGet32 (PcdOvmfWorkAreaBase
);
31 ASSERT (TdxWorkArea
!= NULL
);
32 ASSERT (TdxWorkArea
->SecTdxWorkArea
.HobList
!= 0);
34 return (VOID
*)(UINTN
)TdxWorkArea
->SecTdxWorkArea
.HobList
;
38 Updates the pointer to the HOB list.
40 @param HobList Hob list pointer to store
49 TDX_WORK_AREA
*TdxWorkArea
;
51 TdxWorkArea
= (TDX_WORK_AREA
*)(UINTN
)FixedPcdGet32 (PcdOvmfWorkAreaBase
);
52 ASSERT (TdxWorkArea
!= NULL
);
54 TdxWorkArea
->SecTdxWorkArea
.HobList
= (UINTN
)HobList
;