mirror of https://github.com/acidanthera/audk.git
71fd87e98a
M-mode firmware ranges should not be used by EDK2/OS. Currently, we search for mmode_resv0 node in FDT and mark it as the reserved memory in EFI memory map. However, if there are multiple M-mode firmware ranges, then this will miss those extra ranges allowing the OS to access the memory and hit a fault. This issue is exposed since recent opensbi started creating two ranges for text and data. Fix this by searching for all reserved memory nodes and marking them as reserved in the EFI memory map. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Andrei Warkentin <andrei.warkentin@intel.com> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com> |
||
---|---|---|
.. | ||
Library | ||
PciCpuIo2Dxe | ||
Sec | ||
RiscVVirt.dsc.inc | ||
RiscVVirt.fdf.inc | ||
RiscVVirtQemu.dsc | ||
RiscVVirtQemu.fdf | ||
VarStore.fdf.inc |