summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/ppc/crt0.S
blob: 85b6dca197bf75832320fb497fcc07c943b05091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# arch/ppc/crt0.S
#

	.text
	.align 4
	.type _start,@function
	.globl _start
_start:
	stwu	1,-16(1)
	addi	3,1,16
	/*
	 * the SVR4abippc.pdf specifies r7 as a pointer to
	 * a termination function point
	 * However, Section 8.4.1 of the LSB API docs say that
	 * The value to be placed into register r7, the termination
	 * function pointer, is not passed to the process.
	 * So we stub it out, instead.
	 */
	li	4,0
	bl	__libc_init

	.size _start,.-_start