1.1 --- a/stage2/head2.S Sat Jun 13 00:06:18 2015 +0200
1.2 +++ b/stage2/head2.S Sun Jun 14 01:44:49 2015 +0200
1.3 @@ -12,22 +12,7 @@
1.4 .globl _start
1.5 .set noreorder
1.6 _start:
1.7 - b real_start
1.8 - nop
1.9 - .word 0x0 // its address == start address + 8
1.10 - .word 0x0
1.11 - .word 0x0
1.12 - .word 0x0
1.13 - .word 0x0
1.14 - .word 0x0
1.15 - .word 0x0
1.16 - .word 0x0
1.17 -
1.18 -real_start:
1.19 - /* setup stack, jump to C code */
1.20 add $29, $20, 0x3ffff0 // sp locate at start address offset 0x2ffff0
1.21 - add $25, $20, 0x40 // t9 = c_main()
1.22 - j $25
1.23 - nop
1.24 + j c_main
1.25
1.26 .set reorder