summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2005-08-03 15:04:53 +0000
committerLi-Ta Lo <ollie@lanl.gov>2005-08-03 15:04:53 +0000
commit053d7220072cc08450f2cb7d4f04ed4b2ba80633 (patch)
treecfbdb4abd664f6173c4aa019437d348dbd26da36
parent09952c1970c27b48a118fa67deea52abdafe8d5a (diff)
bug fix from Jonathan McDowell <noodles@earth.li>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1988 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/flash_and_burn/w49f002u.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_and_burn/w49f002u.c b/util/flash_and_burn/w49f002u.c
index 5325076f4f..02667cf1a0 100644
--- a/util/flash_and_burn/w49f002u.c
+++ b/util/flash_and_burn/w49f002u.c
@@ -42,7 +42,7 @@ int write_49f002(struct flashchip *flash, unsigned char *buf)
erase_chip_jedec(flash);
printf("Programming Page: ");
- for (i = 0; i < total_size; i++) {
+ for (i = 0; i < total_size / page_size; i++) {
/* write to the sector */
printf("%04d at address: 0x%08x ", i, i * page_size);
write_sector_jedec(bios, buf + i * page_size,