From 311c56420b07daeae426d03bdfbe20933eabc844 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Sat, 24 Oct 2009 13:40:55 +0000 Subject: Trivial regrouping of a calculation to simplify it. Signed-off-by: Myles Watson Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4839 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/amd/amdk8/northbridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c index 8938e6956f..1dd71de10e 100644 --- a/src/northbridge/amd/amdk8/northbridge.c +++ b/src/northbridge/amd/amdk8/northbridge.c @@ -1025,7 +1025,7 @@ static void amdk8_domain_set_resources(device_t dev) if (i==0 && high_tables_base==0) { /* Leave some space for ACPI, PIRQ and MP tables */ #if CONFIG_GFXUMA == 1 - high_tables_base = ((uma_memory_base >> 10) - HIGH_TABLES_SIZE) * 1024; + high_tables_base = uma_memory_base - (HIGH_TABLES_SIZE * 1024); #else high_tables_base = (mmio_basek - HIGH_TABLES_SIZE) * 1024; #endif @@ -1065,7 +1065,7 @@ static void amdk8_domain_set_resources(device_t dev) if (i==0 && high_tables_base==0) { /* Leave some space for ACPI, PIRQ and MP tables */ #if CONFIG_GFXUMA == 1 - high_tables_base = ((uma_memory_base >> 10) - HIGH_TABLES_SIZE) * 1024; + high_tables_base = uma_memory_base - (HIGH_TABLES_SIZE * 1024); #else high_tables_base = (limitk - HIGH_TABLES_SIZE) * 1024; #endif -- cgit v1.2.3