diff options
author | Dave Chapman <dave@dchapman.com> | 2008-10-11 12:51:13 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-10-11 12:51:13 +0000 |
commit | d2e551f6dfe4e42c13eac0c273fb15457d0e0299 (patch) | |
tree | 281cdf35fb0ab3b09218f4edd13c295f2656ae15 /rbutil | |
parent | 85600e629bf6a6a0583b0b7cb601431f05c61f1d (diff) | |
download | rockbox-d2e551f6dfe4e42c13eac0c273fb15457d0e0299.tar.gz rockbox-d2e551f6dfe4e42c13eac0c273fb15457d0e0299.zip |
Fix a bug in the uclcopy loop, plus add a warning to make sure people know the untested status of this code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18770 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/mkamsboot/dualboot.S | 2 | ||||
-rw-r--r-- | rbutil/mkamsboot/mkamsboot.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/rbutil/mkamsboot/dualboot.S b/rbutil/mkamsboot/dualboot.S index 471158e9a8..c8d2dd7d9f 100644 --- a/rbutil/mkamsboot/dualboot.S +++ b/rbutil/mkamsboot/dualboot.S @@ -44,7 +44,7 @@ start: uclcopy: ldrb r4, [r0], #-1 strb r4, [r3], #-1 - cmp r2, r3 + cmp r2, r0 bne uclcopy add r5, r2, #2 /* r5 is entry point of copy of uclunpack */ diff --git a/rbutil/mkamsboot/mkamsboot.c b/rbutil/mkamsboot/mkamsboot.c index 7e72d6cc3c..67f9850584 100644 --- a/rbutil/mkamsboot/mkamsboot.c +++ b/rbutil/mkamsboot/mkamsboot.c @@ -471,6 +471,10 @@ int main(int argc, char* argv[]) close(fdout); + fprintf(stderr," *****************************************************************************\n"); + fprintf(stderr," *** THIS CODE IS UNTESTED - DO NOT USE IF YOU CAN NOT RECOVER YOUR DEVICE ***\n"); + fprintf(stderr," *****************************************************************************\n"); + return 0; } |