summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-11-24 04:43:31 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-11-24 04:43:31 +0000
commit76e662b8e598ddad9b8e243a230e4a53ed1294d7 (patch)
treedf1a496548082ef983c1d4c81c95ca3bcc740f11 /bootloader
parent5d21c8cb1db547580b8b0cabbee6dd773143d39d (diff)
downloadrockbox-76e662b8e598ddad9b8e243a230e4a53ed1294d7.tar.gz
rockbox-76e662b8e598ddad9b8e243a230e4a53ed1294d7.tar.bz2
rockbox-76e662b8e598ddad9b8e243a230e4a53ed1294d7.zip
fix the e200r installer so it compiles again (storage rework broke it)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19195 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/main-e200r-installer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootloader/main-e200r-installer.c b/bootloader/main-e200r-installer.c
index 3ac57432a3..a24892458d 100644
--- a/bootloader/main-e200r-installer.c
+++ b/bootloader/main-e200r-installer.c
@@ -139,9 +139,9 @@ void* main(void)
printf("reading: %x", (START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK)*512);
#endif
- storage_read_sectors(IF_MV2(0,)
- pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
- 1 , sector);
+ storage_read_sectors(0,
+ pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
+ 1 , sector);
crc32 = chksum_crc32 (sector, 512);
#if 0 /* not needed in release builds */
@@ -161,7 +161,7 @@ void* main(void)
/* E200R bootloader detected - patch it */
memcpy(&sector[HACK_OFFSET], changedBytes,
sizeof(changedBytes)/sizeof(*changedBytes));
- storage_write_sectors(IF_MV2(0,)
+ storage_write_sectors(0,
pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
1 , sector);
printf("Firmware unlocked");