summaryrefslogtreecommitdiff
path: root/klibc/klibc/arch/s390x/crt0.S
blob: de356649044bc6bb7479a6053252da00f1667050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# arch/s390/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 4
	.type _start,@function
	.globl _start
_start:
	lgr	%r2,%r15
	lghi	%r3,0
	aghi	%r15,-160
	jg	__libc_init

	.size _start,.-_start