aboutsummaryrefslogtreecommitdiff
path: root/arch/xtensa/boot/boot-elf/bootstrap.S
blob: 7cba94abdab82a4274bee2e7fe74f2327fc48e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <xtensa/config/specreg.h>
#include <xtensa/config/core.h>

#include <linux/config.h>
#include <asm/bootparam.h>


/* ResetVector
 */
	.section        .ResetVector.text, "ax"
	.global         _ResetVector
_ResetVector:
	_j reset
	.align 4
RomInitAddr:
	.word 0xd0001000
RomBootParam:
	.word _bootparam
reset:
	l32r    a0, RomInitAddr
	l32r	a2, RomBootParam
	movi	a3, 0
	movi	a4, 0
	jx      a0

	.align 4
	.section .bootstrap.data, "aw"

	.globl _bootparam
_bootparam:
	.short	BP_TAG_FIRST
	.short	4
	.long	BP_VERSION
	.short	BP_TAG_LAST
	.short	0
	.long	0