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:
parent
ea67d4757b
commit
311c56420b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue