summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-10-14 20:49:49 +0000
committerMyles Watson <mylesgw@gmail.com>2009-10-14 20:49:49 +0000
commit75472d27e4b76d13812cf466d9defc51a4ecc851 (patch)
treefa2fbf67b832124bc73e5de95342d82e77e44558
parent9a04f17af064927db63655dc26e5d583457232bb (diff)
downloadcoreboot-75472d27e4b76d13812cf466d9defc51a4ecc851.tar.xz
Fix high tables address calculation on cn700 with VIDEO_MB > 0.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4775 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/northbridge/via/cn700/northbridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/via/cn700/northbridge.c b/src/northbridge/via/cn700/northbridge.c
index 2b9a9e1832..ec78870004 100644
--- a/src/northbridge/via/cn700/northbridge.c
+++ b/src/northbridge/via/cn700/northbridge.c
@@ -186,8 +186,8 @@ static void pci_domain_set_resources(device_t dev)
}
#if CONFIG_HAVE_HIGH_TABLES == 1
- high_tables_base = (tolmk - HIGH_TABLES_SIZE) * 1024;
- high_tables_size = HIGH_TABLES_SIZE* 1024;
+ high_tables_base = (tolmk - CONFIG_VIDEO_MB * 1024 - HIGH_TABLES_SIZE) * 1024;
+ high_tables_size = HIGH_TABLES_SIZE * 1024;
printk_debug("tom: %lx, high_tables_base: %llx, high_tables_size: %llx\n", tomk*1024, high_tables_base, high_tables_size);
#endif