bug fix from Jonathan McDowell <noodles@earth.li>

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1988 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Li-Ta Lo 2005-08-03 15:04:53 +00:00
parent 09952c1970
commit 053d722007
1 changed files with 1 additions and 1 deletions

View File

@ -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,