summaryrefslogtreecommitdiff
path: root/user/lib/entry.S
blob: 34390a02f435b80422f0fd227fbedd07237a730d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
	.globl _start
	.extern main
	.extern exit

	.section .text
	.code64
_start:
	call main

	subq	$16, %rsp # ???
	pushq	%rax
	call	exit

halt:
	jmp		halt