xref: /original-bsd/lib/libc/i386/sys/exect.s (revision c3e32dec)
1/*-
2 * Copyright (c) 1990, 1993
3 *	The Regents of the University of California.  All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * %sccs.include.redist.c%
9 */
10
11#if defined(SYSLIBC_SCCS) && !defined(lint)
12	.asciz "@(#)exect.s	8.1 (Berkeley) 06/04/93"
13#endif /* SYSLIBC_SCCS and not lint */
14
15#include "SYS.h"
16#include <machine/psl.h>
17
18ENTRY(exect)
19	lea	SYS_execve,%eax
20	pushf
21	popl	%edx
22	orl	$ PSL_T,%edx
23	pushl	%edx
24	popf
25	LCALL(7,0)
26	jmp	cerror		/* exect(file, argv, env); */
27