From: Shannon Zhao <shannon.z...@linaro.org> If there are more than one memory nodes in FDT, currently UEFI will assert. These two patches firstly let UEFI find the memory node with lowest base address and check if the address is what we expected and set PcdSystemMemorySize as the size of this node. Then add other memory spaces through gDS->AddMemorySpace() when it parses FDT.
Changes since v1: * Fix commit message and add reviewed-by tag from Laszlo (PATCH 1/2) * Factor the codes out as a new function, fix coding style (PATCH 2/2) Shannon Zhao (2): ArmVirtPkg: Find the lowest memory node ArmVirtPkg: Add memory space for the memory nodes except the lowest one ArmVirtPkg/Library/ArmVirtPlatformLib/Virt.c | 30 +++++++----- ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.c | 72 ++++++++++++++++++++++++++++ ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf | 4 ++ 3 files changed, 93 insertions(+), 13 deletions(-) -- 2.0.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel