summaryrefslogtreecommitdiff
path: root/firmware/target/mips
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips')
-rw-r--r--firmware/target/mips/ingenic_x1000/crt0.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/crt0.S b/firmware/target/mips/ingenic_x1000/crt0.S
index 304f8d682f..47c3c4f964 100644
--- a/firmware/target/mips/ingenic_x1000/crt0.S
+++ b/firmware/target/mips/ingenic_x1000/crt0.S
@@ -25,6 +25,7 @@
25 .text 25 .text
26 .extern main 26 .extern main
27 .extern system_early_init 27 .extern system_early_init
28 .extern _loadaddress
28 .global _start 29 .global _start
29 30
30 .set push 31 .set push
@@ -35,6 +36,19 @@
35 .section .init.text 36 .section .init.text
36 37
37_start: 38_start:
39 b _realstart
40 nop
41
42 /* Header entries are 4-byte string labels (not null terminated!) followed
43 * by 4-byte values. Header should begin in the first 128 bytes and should
44 * be no more than 256 bytes in length. */
45_header:
46 .ascii "BEGINHDR" /* beginning of header */
47 .ascii "LOAD"
48 .word _loadaddress
49 .ascii "ENDH" /* end of header structure */
50
51_realstart:
38 /* Cache init */ 52 /* Cache init */
39 li v0, 0x80000000 53 li v0, 0x80000000
40 ori v1, v0, 0x4000 54 ori v1, v0, 0x4000