Root/xbboot/target-stage1/head.S

Source at commit a1c4ecab6bc814e37376d771b363aa4b109a9c57 created 14 years 7 months ago.
By Wolfgang Spraul, Created xbboot.
1//
2// Authors: Wolfgang Spraul <wolfgang@qi-hardware.com>
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU General Public License
6// as published by the Free Software Foundation; either version
7// 3 of the License, or (at your option) any later version.
8//
9
10    .text
11    .extern c_main
12    .globl _start
13    .set noreorder
14
15_start:
16    b real_start
17    nop
18    // 8 words for firmware parameters (0x80002008)
19    .word 0x0
20    .word 0x0
21    .word 0x0
22    .word 0x0
23    .word 0x0
24    .word 0x0
25    .word 0x0
26    .word 0x0
27
28real_start:
29    la $29, 0x80004000 // setup stack (sp)
30    j c_main
31    nop
32
33    .set reorder
34

Archive Download this file



interactive