Author: myles
Date: 2009-10-24 15:40:55 +0200 (Sat, 24 Oct 2009)
New Revision: 4839

Modified:
   trunk/coreboot-v2/src/northbridge/amd/amdk8/northbridge.c
Log:
Trivial regrouping of a calculation to simplify it.

Signed-off-by: Myles Watson <[email protected]>
Acked-by: Myles Watson <[email protected]>

Modified: trunk/coreboot-v2/src/northbridge/amd/amdk8/northbridge.c
===================================================================
--- trunk/coreboot-v2/src/northbridge/amd/amdk8/northbridge.c   2009-10-24 
13:13:37 UTC (rev 4838)
+++ trunk/coreboot-v2/src/northbridge/amd/amdk8/northbridge.c   2009-10-24 
13:40:55 UTC (rev 4839)
@@ -1025,7 +1025,7 @@
                                        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 @@
                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


-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to