summaryrefslogtreecommitdiff
path: root/src/northbridge/amd
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-10-24 13:40:55 +0000
committerMyles Watson <mylesgw@gmail.com>2009-10-24 13:40:55 +0000
commit311c56420b07daeae426d03bdfbe20933eabc844 (patch)
treebd99bef1a808ec06c6499c0692f5f1899659a5cf /src/northbridge/amd
parentea67d4757b776ed7ff147e1b4cbdaf300bc4bb6c (diff)
downloadcoreboot-311c56420b07daeae426d03bdfbe20933eabc844.tar.xz
Trivial regrouping of a calculation to simplify it.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4839 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd')
-rw-r--r--src/northbridge/amd/amdk8/northbridge.c4
1 files changed, 2 insertions, 2 deletions
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