summaryrefslogtreecommitdiff
path: root/arch/i386/crt_arch.h
blob: ae694f990a97f6ad18374bd672ae6b4767971162 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
__asm__("\
.text \n\
.global _start \n\
_start: \n\
	xor %ebp,%ebp \n\
	mov %esp,%eax \n\
	and $-16,%esp \n\
	push %eax \n\
	push %eax \n\
	push %eax \n\
	push %eax \n\
	call __cstart \n\
");