mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
ArmVirtPkg: Kvmtool: Init Arm CCA HOBs in PlatformPeim()
The ArmCcaInitialiseHobs() in ArmCcaInitPeiLib creates Guid HOBs to cache the IsRealm and IPA Width value. Therefore, invoke ArmCcaInitialiseHobs() from the PlatformPeim() to create the Arm CCA HOBs. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
9c05ec80a2
commit
31ea9bcc70
2 changed files with 16 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
Kvmtool platform PEI library.
|
||||
|
||||
Copyright (c) 2020, ARM Limited. All rights reserved.
|
||||
Copyright (c) 2020 - 2026, ARM Limited. All rights reserved.
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
|
|
@ -12,6 +12,7 @@
|
|||
#include <Guid/Early16550UartBaseAddress.h>
|
||||
#include <Guid/FdtHob.h>
|
||||
|
||||
#include <Library/ArmCcaInitPeiLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/FdtLib.h>
|
||||
|
|
@ -31,12 +32,13 @@ PlatformPeim (
|
|||
VOID
|
||||
)
|
||||
{
|
||||
VOID *Base;
|
||||
VOID *NewBase;
|
||||
UINTN FdtSize;
|
||||
UINTN FdtPages;
|
||||
UINT64 *FdtHobData;
|
||||
UINT64 *UartHobData;
|
||||
RETURN_STATUS RetStatus;
|
||||
VOID *Base;
|
||||
VOID *NewBase;
|
||||
UINTN FdtSize;
|
||||
UINTN FdtPages;
|
||||
UINT64 *FdtHobData;
|
||||
UINT64 *UartHobData;
|
||||
|
||||
Base = (VOID *)(UINTN)PcdGet64 (PcdDeviceTreeInitialBaseAddress);
|
||||
if ((Base == NULL) || (FdtCheckHeader (Base) != 0)) {
|
||||
|
|
@ -75,5 +77,11 @@ PlatformPeim (
|
|||
|
||||
BuildFvHob (PcdGet64 (PcdFvBaseAddress), PcdGet32 (PcdFvSize));
|
||||
|
||||
RetStatus = ArmCcaInitialiseHobs ();
|
||||
if (RETURN_ERROR (RetStatus)) {
|
||||
ASSERT (0);
|
||||
return (EFI_STATUS)RetStatus;
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
OvmfPkg/OvmfPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
ArmCcaInitPeiLib
|
||||
DebugLib
|
||||
HobLib
|
||||
FdtLib
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue