summaryrefslogtreecommitdiffstats
path: root/rbutil/mkamsboot/dualboot.S
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/mkamsboot/dualboot.S')
-rw-r--r--rbutil/mkamsboot/dualboot.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/mkamsboot/dualboot.S b/rbutil/mkamsboot/dualboot.S
index 786f610aef..471158e9a8 100644
--- a/rbutil/mkamsboot/dualboot.S
+++ b/rbutil/mkamsboot/dualboot.S
@@ -39,7 +39,7 @@ start:
ldr r1, uclunpack_size /* Source length */
sub r2, r0, r1 /* Source start - 1*/
- ldr r3, =DRAM_SIZE /* Destination end */
+ ldr r3, =(DRAM_SIZE-1) /* Destination end */
uclcopy:
ldrb r4, [r0], #-1