41 Base = (VOID *)(
UINTN)
PcdGet64 (PcdDeviceTreeInitialBaseAddress);
42 if ((Base ==
NULL) || (fdt_check_header (Base) != 0)) {
44 return EFI_INVALID_PARAMETER;
47 FdtSize = fdt_totalsize (Base) +
PcdGet32 (PcdDeviceTreeAllocationPadding);
50 if (NewBase ==
NULL) {
52 return EFI_OUT_OF_RESOURCES;
57 FdtHobData =
BuildGuidHob (&gFdtHobGuid,
sizeof (*FdtHobData));
58 if (FdtHobData ==
NULL) {
60 return EFI_OUT_OF_RESOURCES;
63 *FdtHobData = (
UINTN)NewBase;
66 &gEarly16550UartBaseAddressGuid,
69 if (UartHobData ==
NULL) {
71 return EFI_OUT_OF_RESOURCES;
74 *UartHobData =
PcdGet64 (PcdSerialRegisterBase);
VOID EFIAPI BuildFvHob(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length)
VOID *EFIAPI BuildGuidHob(IN CONST EFI_GUID *Guid, IN UINTN DataLength)
#define PcdGet64(TokenName)
#define PcdGet32(TokenName)
VOID *EFIAPI AllocatePages(IN UINTN Pages)
#define EFI_PAGES_TO_SIZE(Pages)
#define EFI_SIZE_TO_PAGES(Size)