commit | 8a10d5a631bddff703fdcfd5b33ac76cdc02fb63 | [log] [tgz] |
---|---|---|
author | Ollie Lho <ollie@sis.com.tw> | Wed Aug 03 15:04:53 2005 +0000 |
committer | Ollie Lho <ollie@sis.com.tw> | Wed Aug 03 15:04:53 2005 +0000 |
tree | 6f1c67721ac4c323ec7bb3c8723577853639889d | |
parent | 952dfce3c2cc5767b96a2130d4d3625c4d26218b [diff] |
Bug fix from Jonathan McDowell <noodles@earth.li> Corresponding to flashrom svn r33 and coreboot v2 svn r1988.
diff --git a/w49f002u.c b/w49f002u.c index 5325076..02667cf 100644 --- a/w49f002u.c +++ b/w49f002u.c
@@ -42,7 +42,7 @@ 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,