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:
parent
09952c1970
commit
053d722007
|
@ -42,7 +42,7 @@ int write_49f002(struct flashchip *flash, unsigned char *buf)
|
||||||
erase_chip_jedec(flash);
|
erase_chip_jedec(flash);
|
||||||
|
|
||||||
printf("Programming Page: ");
|
printf("Programming Page: ");
|
||||||
for (i = 0; i < total_size; i++) {
|
for (i = 0; i < total_size / page_size; i++) {
|
||||||
/* write to the sector */
|
/* write to the sector */
|
||||||
printf("%04d at address: 0x%08x ", i, i * page_size);
|
printf("%04d at address: 0x%08x ", i, i * page_size);
|
||||||
write_sector_jedec(bios, buf + i * page_size,
|
write_sector_jedec(bios, buf + i * page_size,
|
||||||
|
|
Loading…
Reference in New Issue