summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/sh/crt0.S
blob: 7f0a6496de729cd3547a3bd93b4a73bc594f5baf (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
#
# arch/sh/crt0.S
#
# Does arch-specific initialization and invokes __libc_init
# with the appropriate arguments.
#
# See __static_init.c or __shared_init.c for the expected
# arguments.
#

	.text
	.align 2
	.type _start,#function
	.globl _start

_start:
	mov	r15, r4
	mov	#0, r5
	mov.l	1f, r0

	jsr	@r0
	 nop

	.align 2
1:	.long	__libc_init

	.size _start,.-_start