northbridge/intel/i945: Mark legacy VGA memory as reserved

This change adds legacy VGA memory (0xa0000 - 0xbffff) as
mmio_resource in northbridge.c read_resources() to match what is
exposed to the OS in hostbridge.asl. It ensures that the resource
allocator does not use this range for dynamic resource allocation.

Change-Id: I24e3aaf97202575fa9df8408366c8db5bea07145
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41482
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Furquan Shaikh 2020-05-16 23:55:02 -07:00 committed by Patrick Georgi
parent 8bdf3f4a04
commit 7cf96aeeb7
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,8 @@ static void mch_domain_read_resources(struct device *dev)
uma_resource(dev, 5, uma_memory_base >> 10, uma_memory_size >> 10);
mmio_resource(dev, 6, tseg_memory_base >> 10, tseg_memory_size >> 10);
uma_resource(dev, 7, cbmem_topk, delta_cbmem);
/* legacy VGA memory */
mmio_resource(dev, 8, 640, 768 - 640);
}
static void mch_domain_set_resources(struct device *dev)