pipe.S revision 217106
1117397Skan/*- 2117397Skan * Copyright (c) 1990 The Regents of the University of California. 3169691Skan * All rights reserved. 4117397Skan * 5117397Skan * This code is derived from software contributed to Berkeley by 6117397Skan * William Jolitz. 7117397Skan * 8117397Skan * Redistribution and use in source and binary forms, with or without 9117397Skan * modification, are permitted provided that the following conditions 10117397Skan * are met: 11117397Skan * 1. Redistributions of source code must retain the above copyright 12117397Skan * notice, this list of conditions and the following disclaimer. 13117397Skan * 2. Redistributions in binary form must reproduce the above copyright 14117397Skan * notice, this list of conditions and the following disclaimer in the 15117397Skan * documentation and/or other materials provided with the distribution. 16117397Skan * 4. Neither the name of the University nor the names of its contributors 17117397Skan * may be used to endorse or promote products derived from this software 18169691Skan * without specific prior written permission. 19117397Skan * 20117397Skan * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21117397Skan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22117397Skan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23117397Skan * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24117397Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25117397Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26117397Skan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27117397Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28117397Skan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29117397Skan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30132720Skan * SUCH DAMAGE. 31132720Skan */ 32117397Skan 33117397Skan#if defined(SYSLIBC_SCCS) && !defined(lint) 34117397Skan .asciz "@(#)pipe.s 5.1 (Berkeley) 4/23/90" 35117397Skan#endif /* SYSLIBC_SCCS and not lint */ 36117397Skan#include <machine/asm.h> 37__FBSDID("$FreeBSD: head/lib/libc/i386/sys/pipe.S 217106 2011-01-07 16:08:40Z kib $"); 38 39#include "SYS.h" 40 41SYSCALL(pipe) 42 movl 4(%esp),%ecx 43 movl %eax,(%ecx) 44 movl %edx,4(%ecx) 45 movl $0,%eax 46 ret 47END(__sys_pipe) 48 49 .section .note.GNU-stack,"",%progbits 50