summaryrefslogtreecommitdiffstats
path: root/bootloader/main-e200r-installer.c
diff options
context:
space:
mode:
authorJames Buren <braewoods+rb@braewoods.net>2021-06-21 09:36:54 +0000
committerJames Buren <braewoods+rb@braewoods.net>2021-06-21 09:36:54 +0000
commit581081a3df072833ab22a58af574992820c2ae8f (patch)
tree741a88ef6978b85f62468146ffbcb948a4341139 /bootloader/main-e200r-installer.c
parentfc9208108052440ccde79b6cd33e3598e8fb7c26 (diff)
downloadrockbox-581081a3df072833ab22a58af574992820c2ae8f.tar.gz
rockbox-581081a3df072833ab22a58af574992820c2ae8f.tar.bz2
rockbox-581081a3df072833ab22a58af574992820c2ae8f.zip
mi4: replace chksum_crc32 with crc_32r
This uses an equivalent algorithm but with a different initial value than we normally use (all bits off vs all bits on). Use the new crc_32r to replace the original MI4 crc32 implementation. This frees up some extra space on mi4 targets which gives us more room on a few very space constrained targets (sansa c200/e200, etc). Change-Id: Iaaac3ae353b30566156b1404cbf31ca32926203d
Diffstat (limited to 'bootloader/main-e200r-installer.c')
-rw-r--r--bootloader/main-e200r-installer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootloader/main-e200r-installer.c b/bootloader/main-e200r-installer.c
index 5d1bff7b37..63b3fcb142 100644
--- a/bootloader/main-e200r-installer.c
+++ b/bootloader/main-e200r-installer.c
@@ -35,7 +35,7 @@
#include "file.h"
#include "button.h"
#include "disk.h"
-#include "crc32-mi4.h"
+#include "crc32.h"
#include <string.h>
#include "i2c.h"
#include "backlight-target.h"
@@ -138,7 +138,7 @@ void* main(void)
storage_read_sectors(pinfo.start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
1 , sector);
- crc32 = chksum_crc32 (sector, 512);
+ crc32 = crc_32r (sector, 512, 0);
#if 0 /* not needed in release builds */
printf("--- Hack Status ---");