diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/crt0.S')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/crt0.S | 13 |
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: | |||
79 | bne t1, t2, _iram_loop | 79 | bne t1, t2, _iram_loop |
80 | sw t3, -4(t1) | 80 | sw t3, -4(t1) |
81 | 81 | ||
82 | #if 0 | ||
83 | /* Copy TCSM from BSS */ | ||
84 | la t0, _tcsmcopy | ||
85 | la t1, _tcsmstart | ||
86 | la t2, _tcsmend | ||
87 | _tcsm_loop: | ||
88 | lw t3, 0(t0) | ||
89 | addiu t0, 4 | ||
90 | sw t3, 0(t1) | ||
91 | bne t1, t2, _tcsm_loop | ||
92 | addiu t1, 4 | ||
93 | #endif | ||
94 | |||
82 | /* Clear the BSS segment (needed to zero-initialize C static values) */ | 95 | /* Clear the BSS segment (needed to zero-initialize C static values) */ |
83 | la t0, _bssbegin | 96 | la t0, _bssbegin |
84 | la t1, _bssend | 97 | la t1, _bssend |