[coreboot] [v2] r4839 - trunk/coreboot-v2/src/northbridge/amd/amdk8

svn at coreboot.org svn at coreboot.org
Sat Oct 24 15:40:55 CEST 2009


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 <mylesgw at gmail.com>
Acked-by: Myles Watson <mylesgw at gmail.com>

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





More information about the coreboot mailing list