mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
UefiPayloadPkg: Handle simple reserved ranges from DT
DT has a way to provide reserved images in a simpler tabular manner. UPL should be able to support that. Signed-off-by: Dhaval Sharma <dhaval@rivosinc.com>
This commit is contained in:
parent
043045cd6e
commit
1f32b5a30e
@ -816,6 +816,9 @@ ParseDtb (
|
|||||||
UINT8 NodeType;
|
UINT8 NodeType;
|
||||||
EFI_BOOT_MODE BootMode;
|
EFI_BOOT_MODE BootMode;
|
||||||
CHAR8 *GmaStr;
|
CHAR8 *GmaStr;
|
||||||
|
INTN NumRsv;
|
||||||
|
EFI_PHYSICAL_ADDRESS Addr;
|
||||||
|
UINT64 Size;
|
||||||
UINT16 SegmentNumber;
|
UINT16 SegmentNumber;
|
||||||
UINT64 CurrentPciBaseAddress;
|
UINT64 CurrentPciBaseAddress;
|
||||||
UINT64 NextPciBaseAddress;
|
UINT64 NextPciBaseAddress;
|
||||||
@ -886,6 +889,16 @@ ParseDtb (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NumRsv = FdtNumRsv (Fdt);
|
||||||
|
/* Look for an existing entry and add it to the efi mem map. */
|
||||||
|
for (index = 0; index < NumRsv; index++) {
|
||||||
|
if (FdtGetMemRsv (Fdt, index, &Addr, &Size) != 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
BuildMemoryAllocationHob (Addr, Size, EfiReservedMemoryType);
|
||||||
|
}
|
||||||
|
|
||||||
index = RootBridgeCount - 1;
|
index = RootBridgeCount - 1;
|
||||||
Depth = 0;
|
Depth = 0;
|
||||||
for (Node = FdtNextNode (Fdt, 0, &Depth); Node >= 0; Node = FdtNextNode (Fdt, Node, &Depth)) {
|
for (Node = FdtNextNode (Fdt, 0, &Depth); Node >= 0; Node = FdtNextNode (Fdt, Node, &Depth)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user