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
This commit is contained in:
Myles Watson 2009-10-24 13:40:55 +00:00
parent ea67d4757b
commit 311c56420b
1 changed files with 2 additions and 2 deletions

View File

@ -1025,7 +1025,7 @@ static void amdk8_domain_set_resources(device_t dev)
if (i==0 && high_tables_base==0) { if (i==0 && high_tables_base==0) {
/* Leave some space for ACPI, PIRQ and MP tables */ /* Leave some space for ACPI, PIRQ and MP tables */
#if CONFIG_GFXUMA == 1 #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 #else
high_tables_base = (mmio_basek - HIGH_TABLES_SIZE) * 1024; high_tables_base = (mmio_basek - HIGH_TABLES_SIZE) * 1024;
#endif #endif
@ -1065,7 +1065,7 @@ static void amdk8_domain_set_resources(device_t dev)
if (i==0 && high_tables_base==0) { if (i==0 && high_tables_base==0) {
/* Leave some space for ACPI, PIRQ and MP tables */ /* Leave some space for ACPI, PIRQ and MP tables */
#if CONFIG_GFXUMA == 1 #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 #else
high_tables_base = (limitk - HIGH_TABLES_SIZE) * 1024; high_tables_base = (limitk - HIGH_TABLES_SIZE) * 1024;
#endif #endif