summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/m68k/crt0.s
blob: 87bc173d8c021d6b1c304eda566dea2148c28b07 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# 1 "crt0.S"
 


















	.global	_start
	.global	__main
	.global _end
 

	.bss
	.global environ
environ:
	.long 0

	.text
_start:			 
	nop
	nop

	movea.l %d5, %a5

	lea	__bss_start(%a5), %a0
	lea	end(%a5), %a1
 
	 
	 










	move.l 8(%sp), %d5
	move.l %d5, environ(%a5)
	
	bsr main

	move.l %d0,%sp@-
	bsr	exit		 

# 69 "crt0.S"


	.global	_cleanup
_cleanup:
	rts