summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/entry_ll.S
blob: 8cc7a84f1062617f18fe74b70565b6571502f063 (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
#include <linux/linkage.h>
#include <asm/sections.h>

/*
 * r0: memory base
 * r1: memory size
 * r2: board data
 * r3: new value for SP
 */
.section .text.__barebox_arm_entry
ENTRY(__barebox_arm_entry)
	mov	sp, r3
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	bl	arm_early_mmu_cache_invalidate
	mov	r0, r4
	mov	r1, r5
	mov	r2, r6
#if IS_ENABLED(CONFIG_PBL_IMAGE)
	b	barebox_pbl_start
#else
	b	barebox_non_pbl_start
#endif
ENDPROC(__barebox_arm_entry)