BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / 03048a95d88cc7a78171393371f5c22a0250a014 / crt0.S

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 3 months ago)
.section .text

.global _start
_start:
	movl	0(%esp), %eax          # argc
	leal	4(%esp), %edx          # argv
	leal	8(%esp, %eax, 4), %ecx # envp

	pushl	%ecx       # envp
	pushl	%edx       # argv
	pushl	%eax       # argc
	xorl	%ebp, %ebp # mark first stack frame

	call	main

	pushl	%eax
	call	exit
.size _start, . - _start