linux_exec.h revision 1.6
11.6Schristos/*	$NetBSD: linux_exec.h,v 1.6 2003/08/08 18:57:04 christos Exp $	*/
21.1Serh
31.1Serh/*-
41.1Serh * Copyright (c) 1998 The NetBSD Foundation, Inc.
51.1Serh * All rights reserved.
61.1Serh *
71.1Serh * This code is derived from software contributed to The NetBSD Foundation
81.1Serh * by Eric Haszlakiewicz.
91.1Serh *
101.1Serh * Redistribution and use in source and binary forms, with or without
111.1Serh * modification, are permitted provided that the following conditions
121.1Serh * are met:
131.1Serh * 1. Redistributions of source code must retain the above copyright
141.1Serh *    notice, this list of conditions and the following disclaimer.
151.1Serh * 2. Redistributions in binary form must reproduce the above copyright
161.1Serh *    notice, this list of conditions and the following disclaimer in the
171.1Serh *    documentation and/or other materials provided with the distribution.
181.1Serh * 3. All advertising materials mentioning features or use of this software
191.1Serh *    must display the following acknowledgement:
201.1Serh *	This product includes software developed by the NetBSD
211.1Serh *	Foundation, Inc. and its contributors.
221.1Serh * 4. Neither the name of The NetBSD Foundation nor the names of its
231.1Serh *    contributors may be used to endorse or promote products derived
241.1Serh *    from this software without specific prior written permission.
251.1Serh *
261.1Serh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
271.1Serh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
281.1Serh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
291.1Serh * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
301.1Serh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
311.1Serh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
321.1Serh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
331.1Serh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
341.1Serh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
351.1Serh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
361.1Serh * POSSIBILITY OF SUCH DAMAGE.
371.1Serh */
381.1Serh
391.1Serh#ifndef _I386_LINUX_EXEC_H
401.1Serh#define _I386_LINUX_EXEC_H
411.1Serh
421.1Serh#define LINUX_M_I386		100
431.1Serh#define LINUX_MID_MACHINE	LINUX_M_I386
441.6Schristos#define LINUX_USRSTACK		0xC0000000
451.2Serh
461.2Serh#define LINUX_GCC_SIGNATURE	1
471.3Serh
481.5Sjdolecek#define LINUX_ELF_AUX_ARGSIZ 	\
491.5Sjdolecek	(howmany(LINUX_ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof(Elf32_Addr)))
501.6Schristos
511.6Schristosint linux_exec_setup_stack(struct proc *, struct exec_package *);
521.1Serh
531.1Serh#endif /* !_I386_LINUX_EXEC_H */
54