Chris Zankel | 4bedea9 | 2005-06-23 22:01:12 -0700 | [diff] [blame] | 1 | |
Chris Zankel | 4bedea9 | 2005-06-23 22:01:12 -0700 | [diff] [blame] | 2 | #include <asm/bootparam.h> |
3 | |||||
4 | |||||
5 | /* ResetVector | ||||
6 | */ | ||||
7 | .section .ResetVector.text, "ax" | ||||
8 | .global _ResetVector | ||||
9 | _ResetVector: | ||||
10 | _j reset | ||||
11 | .align 4 | ||||
12 | RomInitAddr: | ||||
13 | .word 0xd0001000 | ||||
14 | RomBootParam: | ||||
15 | .word _bootparam | ||||
16 | reset: | ||||
17 | l32r a0, RomInitAddr | ||||
18 | l32r a2, RomBootParam | ||||
19 | movi a3, 0 | ||||
20 | movi a4, 0 | ||||
21 | jx a0 | ||||
22 | |||||
23 | .align 4 | ||||
24 | .section .bootstrap.data, "aw" | ||||
25 | |||||
26 | .globl _bootparam | ||||
27 | _bootparam: | ||||
28 | .short BP_TAG_FIRST | ||||
29 | .short 4 | ||||
30 | .long BP_VERSION | ||||
31 | .short BP_TAG_LAST | ||||
32 | .short 0 | ||||
33 | .long 0 |