summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/crt0.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/crt0.S b/firmware/crt0.S
index 088ea0aff4..e33faa66e5 100644
--- a/firmware/crt0.S
+++ b/firmware/crt0.S
@@ -116,6 +116,9 @@ copy_l:
116 mov.l datacopy_k,r0 116 mov.l datacopy_k,r0
117 mov.l data_k,r1 117 mov.l data_k,r1
118 mov.l dataend_k,r2 118 mov.l dataend_k,r2
119 /* Don't copy if src and dest are equal */
120 cmp/eq r0,r1
121 bt nodatacopy
119copy_l2: 122copy_l2:
120 mov.l @r0,r3 123 mov.l @r0,r3
121 mov.l r3,@r1 124 mov.l r3,@r1
@@ -124,7 +127,7 @@ copy_l2:
124 cmp/ge r2,r1 127 cmp/ge r2,r1
125 bf copy_l2 128 bf copy_l2
126 nop 129 nop
127 130nodatacopy:
128 /* Munge the main thread stack */ 131 /* Munge the main thread stack */
129 mov.l stack_k,r2 132 mov.l stack_k,r2
130 mov.l deadbeef_k,r0 133 mov.l deadbeef_k,r0