summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/entry_ll_64.S
blob: 37e0cb66b549e35a066d3f0312485962a88dd2a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <linux/linkage.h>
#include <asm/sections.h>

/*
 * x0: memory base
 * x1: memory size
 * x2: board data
 * x3: new value for SP
 */
.section .text.__barebox_arm_entry
ENTRY(__barebox_arm_entry)
	mov	sp, x3
	/*
	 * arm_early_mmu_cache_invalidate is jsut a call to
	 * v8_invalidate_icache_all() which doesn't clobber x0, x1 or x2
 	 */
	bl	arm_early_mmu_cache_invalidate
#if IS_ENABLED(CONFIG_PBL_IMAGE)
	b	barebox_pbl_start
#else
	b	barebox_non_pbl_start
#endif
ENDPROC(__barebox_arm_entry)