Fix logic error in determining the decode size of the Intel FWH bridge chip.

Signed-Off-By: Michael Karcher <[email protected]>

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;


_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to