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

	.text
	.type	_start,@function
	.ent	_start, 0
	.globl	_start
_start:
	.frame  $30, 0, $26, 0
	mov	$31, $15
	br	$29, 1f
1:	ldgp	$29, 0($29)
	.prologue 0

	lda	$16, 0($30)		# ELF data structure
	lda	$17, 0($0)		# atexit pointer

	jsr	$26, __libc_init

	.size	_start,.-_start
	.end	_start