[flashrom] Fix FWH decode size.
Michael Karcher
flashrom at mkarcher.dialup.fu-berlin.de
Wed Dec 30 17:24:28 CET 2009
Fix logic error in determining the decode size of the Intel FWH bridge chip.
Signed-Off-By: Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>
Index: chipset_enable.c
===================================================================
--- chipset_enable.c (Revision 824)
+++ chipset_enable.c (Arbeitskopie)
@@ -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