summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-02-19 17:19:42 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-02-19 17:19:42 +0000
commit2ee18b336ac5041bc2fc813268f53d0385ae298d (patch)
tree5b4a0e4dea4edf2f2ca7b956d67594936c721d5e /bootloader
parent21ca86646f0e3303f80cb1139d178eea28692c14 (diff)
downloadrockbox-2ee18b336ac5041bc2fc813268f53d0385ae298d.tar.gz
rockbox-2ee18b336ac5041bc2fc813268f53d0385ae298d.tar.bz2
rockbox-2ee18b336ac5041bc2fc813268f53d0385ae298d.zip
fix storage_*() calls
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20047 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/main-c240wipe.c10
-rw-r--r--bootloader/main-c250wipe.c12
2 files changed, 11 insertions, 11 deletions
diff --git a/bootloader/main-c240wipe.c b/bootloader/main-c240wipe.c
index 952382eb5b..8c213a94c2 100644
--- a/bootloader/main-c240wipe.c
+++ b/bootloader/main-c240wipe.c
@@ -192,7 +192,7 @@ void* main(void)
printf("Zeroing flash");
for(i=0;i<250816;i++)
{
- storage_write_sectors(IF_MV2(0,) i*32,32,zero);
+ storage_write_sectors(0,i*32,32,zero);
if(i%64 == 0)
{
printf("%d kB left",(250816-i)/2);
@@ -200,13 +200,13 @@ void* main(void)
}
printf("Writing MBR");
- storage_write_sectors(IF_MV2(0,) 0,1,mbr);
+ storage_write_sectors(0,0,1,mbr);
printf("Writing FAT bootsector");
- storage_write_sectors(IF_MV2(0,) 1023,1,fat);
+ storage_write_sectors(0,1023,1,fat);
printf("Writing more FAT");
- storage_write_sectors(IF_MV2(0,) 1024,1,backupfat);
+ storage_write_sectors(0,1024,1,backupfat);
printf("Writing more FAT");
- storage_write_sectors(IF_MV2(0,) 1264,1,backupfat);
+ storage_write_sectors(0,1264,1,backupfat);
if (button_hold())
printf("Release Hold and");
diff --git a/bootloader/main-c250wipe.c b/bootloader/main-c250wipe.c
index 06a0a5b2b5..cecc0aac5a 100644
--- a/bootloader/main-c250wipe.c
+++ b/bootloader/main-c250wipe.c
@@ -257,7 +257,7 @@ void* main(void)
printf("Zeroing flash");
for(i=0;i<250816;i++)
{
- storage_write_sectors(IF_MV2(0,) i*32,32,zero);
+ storage_write_sectors(0,i*32,32,zero);
if(i%64 == 0)
{
printf("%d kB left",(250816-i)/2);
@@ -265,15 +265,15 @@ void* main(void)
}
printf("Writing MBR");
- storage_write_sectors(IF_MV2(0,) 0,1,mbr);
+ storage_write_sectors(0,0,1,mbr);
printf("Writing FAT bootsector");
- storage_write_sectors(IF_MV2(0,) 1017,2,bootsector);
+ storage_write_sectors(0,1017,2,bootsector);
printf("Writing more FAT");
- storage_write_sectors(IF_MV2(0,) 1023,1,fat);
+ storage_write_sectors(0,1023,1,fat);
printf("Writing more FAT");
- storage_write_sectors(IF_MV2(0,) 1049,1,backupfat);
+ storage_write_sectors(0,1049,1,backupfat);
printf("Writing more FAT");
- storage_write_sectors(IF_MV2(0,) 4920,1,backupfat);
+ storage_write_sectors(0,4920,1,backupfat);
if (button_hold())
printf("Release Hold and");