From 15ef9b651312fef3842fb5541e835ada8751b3fe Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 18 Jan 2021 00:48:27 +0100 Subject: [PATCH] nb/intel/i945/northbridge.c: Reserve upper part of lower memory This memory is used for option roms and BIOS. This matches the ACPI code. Change-Id: I53dd4b967569889108352ca70086a12ce252e8e0 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/49624 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph Reviewed-by: Angel Pons --- src/northbridge/intel/i945/northbridge.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/northbridge/intel/i945/northbridge.c b/src/northbridge/intel/i945/northbridge.c index 00d5be95b5..d2256729e9 100644 --- a/src/northbridge/intel/i945/northbridge.c +++ b/src/northbridge/intel/i945/northbridge.c @@ -107,12 +107,14 @@ static void mch_domain_read_resources(struct device *dev) /* Report the memory regions */ ram_resource(dev, 3, 0, 0xa0000 / KiB); - ram_resource(dev, 4, 0xc0000 / KiB, (tomk - 0xc0000 / KiB)); + ram_resource(dev, 4, 1 * MiB / KiB, (tomk - 1 * MiB / KiB)); uma_resource(dev, 5, uma_memory_base / KiB, uma_memory_size / KiB); mmio_resource(dev, 6, tseg_memory_base / KiB, tseg_memory_size / KiB); uma_resource(dev, 7, cbmem_topk, delta_cbmem); /* legacy VGA memory */ mmio_resource(dev, 8, 0xa0000 / KiB, (0xc0000 - 0xa0000) / KiB); + /* RAM to be used for option roms and BIOS */ + reserved_ram_resource(dev, 9, 0xc0000 / KiB, (1 * MiB - 0xc0000) / KiB); } static void mch_domain_set_resources(struct device *dev)