aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/start.S
blob: ccbbf18a54631d052b7f96069e232d501fbcab95 (plain)
1
2
3
4
5
6
7
8
9
10
11
.global _start
_start:
	mov (%rsp), %rdi
	xor %rax, %rax
	lea 8(%rsp, %rax, 8), %rsi
	lea 16(%rsp, %rdi, 8), %rdx
	call init_env
	call main
	mov $0, %rdi
	mov $60, %rax
	syscall