From 666c8f8fc5875f340b0c128c9b03cd336e00ad3e Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 14 Jul 2020 12:22:16 +0200 Subject: mb/qemu-i440fx/memmap: Add warning when falling back to CMOS infos Change-Id: Iefac6fd45791cf6a051450b41046f7e7ebc1dc41 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/43446 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/emulation/qemu-i440fx/memmap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainboard/emulation') diff --git a/src/mainboard/emulation/qemu-i440fx/memmap.c b/src/mainboard/emulation/qemu-i440fx/memmap.c index 2f8a4f8aef..b30b3816c5 100644 --- a/src/mainboard/emulation/qemu-i440fx/memmap.c +++ b/src/mainboard/emulation/qemu-i440fx/memmap.c @@ -3,6 +3,7 @@ #include #include #include +#include #include "memory.h" #include "fw_cfg.h" @@ -44,8 +45,10 @@ void *cbmem_top_chipset(void) uintptr_t top = 0; top = fw_cfg_tolud(); - if (!top) + if (!top) { + printk(BIOS_WARNING, "QEMU: Falling back to RAM info in CMOS\n"); top = (uintptr_t)qemu_get_memory_size() * 1024; + } return (void *)top; } -- cgit v1.2.3