Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/50267 )
Change subject: mb/emulation/qemu-q35: Fix crash in CorebootPayloadPkg ......................................................................
mb/emulation/qemu-q35: Fix crash in CorebootPayloadPkg
Mark TSEG as reserved, which is done on other platforms as well.
For some reason CorebootPayloadPkg crashes when using the region which is basically RAM. UefiPayloadPkg doesn't show this issue.
Change-Id: I3ae3659349d2a88bc3575fe9675433c054e28832 Signed-off-by: Patrick Rudolph patrick.rudolph@9elements.com --- M src/mainboard/emulation/qemu-i440fx/northbridge.c 1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/67/50267/1
diff --git a/src/mainboard/emulation/qemu-i440fx/northbridge.c b/src/mainboard/emulation/qemu-i440fx/northbridge.c index f49d47da..9b47735 100644 --- a/src/mainboard/emulation/qemu-i440fx/northbridge.c +++ b/src/mainboard/emulation/qemu-i440fx/northbridge.c @@ -106,6 +106,14 @@ ram_resource(dev, idx++, 4 * 1024 * 1024, high); }
+ if (CONFIG(BOARD_EMULATION_QEMU_X86_Q35)) { + size_t tseg_size; + size_t tseg_base; + smm_region(&tseg_base, &tseg_size); + + reserved_ram_resource(dev, idx++, tseg_base / 1024, tseg_size / 1024); + } + /* Reserve I/O ports used by QEMU */ qemu_reserve_ports(dev, idx++, 0x0510, 0x02, "firmware-config"); qemu_reserve_ports(dev, idx++, 0x5658, 0x01, "vmware-port");