exect.S revision 81586
156893Sfenner/*- 256893Sfenner * Copyright (c) 1990 The Regents of the University of California. 356893Sfenner * All rights reserved. 456893Sfenner * 556893Sfenner * This code is derived from software contributed to Berkeley by 656893Sfenner * William Jolitz. 756893Sfenner * 856893Sfenner * Redistribution and use in source and binary forms, with or without 956893Sfenner * modification, are permitted provided that the following conditions 1056893Sfenner * are met: 1156893Sfenner * 1. Redistributions of source code must retain the above copyright 1256893Sfenner * notice, this list of conditions and the following disclaimer. 1356893Sfenner * 2. Redistributions in binary form must reproduce the above copyright 1456893Sfenner * notice, this list of conditions and the following disclaimer in the 1556893Sfenner * documentation and/or other materials provided with the distribution. 1656893Sfenner * 3. All advertising materials mentioning features or use of this software 1756893Sfenner * must display the following acknowledgement: 1856893Sfenner * This product includes software developed by the University of 1956893Sfenner * California, Berkeley and its contributors. 2056893Sfenner * 4. Neither the name of the University nor the names of its contributors 2156893Sfenner * may be used to endorse or promote products derived from this software 2256893Sfenner * without specific prior written permission. 2356893Sfenner * 2456893Sfenner * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2556893Sfenner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2656893Sfenner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2756893Sfenner * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2856893Sfenner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2956893Sfenner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3056893Sfenner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3156893Sfenner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3256893Sfenner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3356893Sfenner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3456893Sfenner * SUCH DAMAGE. 3556893Sfenner */ 3656893Sfenner 3756893Sfenner#if defined(SYSLIBC_RCS) && !defined(lint) 3856893Sfenner .text 3956893Sfenner .asciz "$FreeBSD: head/lib/libc/i386/sys/exect.S 81586 2001-08-13 14:06:34Z ru $" 4056893Sfenner#endif /* SYSLIBC_RCS and not lint */ 4156893Sfenner 4256893Sfenner#include "SYS.h" 4356893Sfenner#include <machine/psl.h> 4456893Sfenner 4556893SfennerENTRY(exect) 4656893Sfenner lea SYS_execve,%eax 4756893Sfenner pushf 4856893Sfenner popl %edx 4956893Sfenner orl $ PSL_T,%edx 5056893Sfenner pushl %edx 5156893Sfenner popf 5256893Sfenner KERNCALL 5356893Sfenner PIC_PROLOGUE 5456893Sfenner jmp PIC_PLT(HIDENAME(cerror)) /* exect(file, argv, env); */ 5556893Sfenner