/*
 * execve.S
 */


#define ASM_FILE


#include<share/segment.h>
#include<sys/syscall.h>


.text


.globl execve
execve:
    movl	$SYS_EXEC,%eax
	lcall	$SYSCALL3_SEG,$0
	subl	$4*4,%esp
	cmpl	$0,%eax
	js		sys_error
	ret
