summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/barebox-arm-head.h
blob: fdbee8cddaedb27fac7f200eaaecdf52c0680694 (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
#ifndef __ASM_ARM_HEAD_H
#define __ASM_ARM_HEAD_H

static inline void barebox_arm_head(void)
{
	__asm__ __volatile__ (
		"b reset\n"
		"1: b 1b\n"
		"1: b 1b\n"
		"1: b 1b\n"
		"1: b 1b\n"
		"1: b 1b\n"
		"1: b 1b\n"
		"1: b 1b\n"
		".word 0x65726162\n"			/* 'bare' */
		".word 0x00786f62\n"			/* 'box' */
		".word _text\n"				/* text base. If copied there,
							 * barebox can skip relocation
							 */
		".word _barebox_image_size\n"		/* image size to copy */
	);
}

#endif /* __ASM_ARM_HEAD_H */