1 /* 2 * Entry point of the firmware. 3 * The firmware code are executed in the ICache. 4 * Do not edit! 5 * Copyright (C) 2006 Ingenic Semiconductor Inc. 6 * 7 */ 8 9 .text 10 .extern c_main 11 12 .globl _start 13 .set noreorder 14 _start: 15 b real_start 16 nop 17 .word 0x0 // its address == start address + 8 18 .word 0x0 19 .word 0x0 20 .word 0x0 21 .word 0x0 22 .word 0x0 23 .word 0x0 24 .word 0x0 25 26 real_start: 27 /* setup stack, jump to C code */ 28 add $29, $20, 0x3ffff0 // sp locate at start address offset 0x2ffff0 29 add $25, $20, 0x40 // t9 = c_main() 30 j $25 31 nop 32 33 .set reorder