mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 22:52:34 +02:00
Bug fix from Jonathan McDowell <noodles@earth.li>
Corresponding to flashrom svn r33 and coreboot v2 svn r1988.
This commit is contained in:
parent
952dfce3c2
commit
8a10d5a631
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user