[flashrom] [commit] r826 - trunk

svn at flashrom.org svn at flashrom.org
Sun Jan 3 16:09:17 CET 2010


Author: mkarcher
Date: 2010-01-03 16:09:17 +0100 (Sun, 03 Jan 2010)
New Revision: 826

Modified:
   trunk/chipset_enable.c
Log:
Fix Intel FWH decode size

Fixes wrong detection of area decoded to the FWH interfaces.

Signed-off-by: Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Modified: trunk/chipset_enable.c
===================================================================
--- trunk/chipset_enable.c	2010-01-03 14:40:30 UTC (rev 825)
+++ trunk/chipset_enable.c	2010-01-03 15:09:17 UTC (rev 826)
@@ -364,7 +364,7 @@
 			     (0x1ff8 + i) * 0x80000,
 			     (0x1ff0 + i) * 0x80000,
 			     tmp ? "en" : "dis");
-		if ((tmp == 0) && contiguous) {
+		if ((tmp == 1) && contiguous) {
 			max_decode_fwh_decode = (8 - i) * 0x80000;
 		} else {
 			contiguous = 0;
@@ -376,7 +376,7 @@
 			     (0xff4 + i) * 0x100000,
 			     (0xff0 + i) * 0x100000,
 			     tmp ? "en" : "dis");
-		if ((tmp == 0) && contiguous) {
+		if ((tmp == 1) && contiguous) {
 			max_decode_fwh_decode = (8 - i) * 0x100000;
 		} else {
 			contiguous = 0;





More information about the flashrom mailing list