We submit a patch in TF-A which is armed at reporting the information of through SMC. Cooperating with that patch, we can get thecinformation of memory in EDK2 via SMC calls.
Changes in v2: - Align with the latest version. - modify language and formatting errors.
Changes in v3: - read the information of memory in SbsaQemuSmc.c.
Changes in v4: - add DT fallback when SMC failed.
Xiong Yining (1): SbsaQemu: get the information of memory form TF-A
Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 2 + .../Include/IndustryStandard/SbsaQemuSmc.h | 2 + .../SbsaQemu/Include/Library/QemuSbsaSmc.h | 49 +++++++ .../Library/SbsaQemuLib/SbsaQemuLib.inf | 2 +- .../Library/SbsaQemuLib/SbsaQemuMem.c | 52 ++----- .../Library/SbsaQemuSmc/SbsaQemuSmc.c | 137 ++++++++++++++++++ .../Library/SbsaQemuSmc/SbsaQemuSmc.inf | 10 ++ Silicon/Qemu/SbsaQemu/SbsaQemu.dec | 3 + 8 files changed, 216 insertions(+), 41 deletions(-)