summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7m/start.S
blob: a439404a248a7e8c9e83152f4f9d24e01d9bbc6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * (C) Copyright 2015
 * Kamil Lulko, <kamil.lulko@gmail.com>
 */

#include <linux/linkage.h>
#include <asm/assembler.h>

/*
 * Startup code (reset vector)
 */
ENTRY(reset)
	W(b)	_main	@ Jump to _main (C runtime crt0.S)
ENDPROC(reset)

/*
 * Setup CPU for C runtime
 */
ENTRY(c_runtime_cpu_setup)
	mov pc, lr			@ Jump back to caller
ENDPROC(c_runtime_cpu_setup)