summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_x1000/crt0.S
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/crt0.S')
-rw-r--r--firmware/target/mips/ingenic_x1000/crt0.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/crt0.S b/firmware/target/mips/ingenic_x1000/crt0.S
index 47c3c4f964..f7cb4686f1 100644
--- a/firmware/target/mips/ingenic_x1000/crt0.S
+++ b/firmware/target/mips/ingenic_x1000/crt0.S
@@ -79,6 +79,19 @@ _iram_loop:
bne t1, t2, _iram_loop
sw t3, -4(t1)
+#if 0
+ /* Copy TCSM from BSS */
+ la t0, _tcsmcopy
+ la t1, _tcsmstart
+ la t2, _tcsmend
+_tcsm_loop:
+ lw t3, 0(t0)
+ addiu t0, 4
+ sw t3, 0(t1)
+ bne t1, t2, _tcsm_loop
+ addiu t1, 4
+#endif
+
/* Clear the BSS segment (needed to zero-initialize C static values) */
la t0, _bssbegin
la t1, _bssend