summaryrefslogtreecommitdiff
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.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/crt0.S b/firmware/target/mips/ingenic_x1000/crt0.S
index 494f3722aa..6c0942b0db 100644
--- a/firmware/target/mips/ingenic_x1000/crt0.S
+++ b/firmware/target/mips/ingenic_x1000/crt0.S
@@ -75,6 +75,15 @@ _realstart:
75 bal _copy 75 bal _copy
76 nop 76 nop
77 77
78#ifdef HAVE_INIT_ATTR
79 /* Copy init code */
80 la a0, _initcopy
81 la a1, _initstart
82 la a2, _initend
83 bal _copy
84 nop
85#endif
86
78 /* Clear the BSS segment (needed to zero-initialize C static values) */ 87 /* Clear the BSS segment (needed to zero-initialize C static values) */
79 la a0, _bssbegin 88 la a0, _bssbegin
80 la a1, _bssend 89 la a1, _bssend