diff options
author | Chris Zankel <czankel@tensilica.com> | 2005-06-24 01:01:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:05:21 -0400 |
commit | 4bedea94545165364618d403d03b61d797acba0b (patch) | |
tree | 04626bb71e0fb5ea5c5d5aa4fedc813301bea6a6 /arch/xtensa/boot/boot-elf/bootstrap.S | |
parent | 8e1a6dd2fddcc73c9e933758361e3d9c076c688a (diff) |
[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 2
The attached patches provides part 2 of an architecture implementation for the
Tensilica Xtensa CPU series.
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/xtensa/boot/boot-elf/bootstrap.S')
-rw-r--r-- | arch/xtensa/boot/boot-elf/bootstrap.S | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/xtensa/boot/boot-elf/bootstrap.S b/arch/xtensa/boot/boot-elf/bootstrap.S new file mode 100644 index 000000000000..7cba94abdab8 --- /dev/null +++ b/arch/xtensa/boot/boot-elf/bootstrap.S | |||
@@ -0,0 +1,37 @@ | |||
1 | |||
2 | #include <xtensa/config/specreg.h> | ||
3 | #include <xtensa/config/core.h> | ||
4 | |||
5 | #include <linux/config.h> | ||
6 | #include <asm/bootparam.h> | ||
7 | |||
8 | |||
9 | /* ResetVector | ||
10 | */ | ||
11 | .section .ResetVector.text, "ax" | ||
12 | .global _ResetVector | ||
13 | _ResetVector: | ||
14 | _j reset | ||
15 | .align 4 | ||
16 | RomInitAddr: | ||
17 | .word 0xd0001000 | ||
18 | RomBootParam: | ||
19 | .word _bootparam | ||
20 | reset: | ||
21 | l32r a0, RomInitAddr | ||
22 | l32r a2, RomBootParam | ||
23 | movi a3, 0 | ||
24 | movi a4, 0 | ||
25 | jx a0 | ||
26 | |||
27 | .align 4 | ||
28 | .section .bootstrap.data, "aw" | ||
29 | |||
30 | .globl _bootparam | ||
31 | _bootparam: | ||
32 | .short BP_TAG_FIRST | ||
33 | .short 4 | ||
34 | .long BP_VERSION | ||
35 | .short BP_TAG_LAST | ||
36 | .short 0 | ||
37 | .long 0 | ||