xref: /netbsd-src/sys/compat/linux/common/linux_emuldata.h (revision 7ba300a976474a55991d4359f4f90b42c5c26ef9)
1*7ba300a9Sandvar /*	$NetBSD: linux_emuldata.h,v 1.20 2022/05/20 19:34:22 andvar Exp $	*/
22f365020Serh 
32f365020Serh /*-
42f365020Serh  * Copyright (c) 1998,2002 The NetBSD Foundation, Inc.
52f365020Serh  * All rights reserved.
62f365020Serh  *
72f365020Serh  * This code is derived from software contributed to The NetBSD Foundation
82f365020Serh  * by Eric Haszlakiewicz.
92f365020Serh  *
102f365020Serh  * Redistribution and use in source and binary forms, with or without
112f365020Serh  * modification, are permitted provided that the following conditions
122f365020Serh  * are met:
132f365020Serh  * 1. Redistributions of source code must retain the above copyright
142f365020Serh  *    notice, this list of conditions and the following disclaimer.
152f365020Serh  * 2. Redistributions in binary form must reproduce the above copyright
162f365020Serh  *    notice, this list of conditions and the following disclaimer in the
172f365020Serh  *    documentation and/or other materials provided with the distribution.
182f365020Serh  *
192f365020Serh  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
202f365020Serh  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
212f365020Serh  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
222f365020Serh  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
232f365020Serh  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
242f365020Serh  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
252f365020Serh  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
262f365020Serh  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
272f365020Serh  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
282f365020Serh  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
292f365020Serh  * POSSIBILITY OF SUCH DAMAGE.
302f365020Serh  */
31cdc6431cSerh 
32cdc6431cSerh #ifndef _COMMON_LINUX_EMULDATA_H
33cdc6431cSerh #define _COMMON_LINUX_EMULDATA_H
34cdc6431cSerh 
35cdc6431cSerh /*
36*7ba300a9Sandvar  * This is auxiliary data the linux compat code
37cdc6431cSerh  * needs to do its work.  A pointer to it is
38cdc6431cSerh  * stored in the emuldata field of the proc
3933d7a60cSjdolecek  * structure.
40cdc6431cSerh  */
4181c909ddSmanu 
42cdc6431cSerh struct linux_emuldata {
4333fa5ccbSchs 	int	led_debugreg[8];	/* GDB information for ptrace - for use, */
441208df7bSmanu 				/* see ../arch/i386/linux_ptrace.c */
455dfa1e6bSchristos 
4633fa5ccbSchs 	void	*led_child_tidptr;	/* Used during clone() */
4733fa5ccbSchs 	void	*led_clear_tid;		/* Own TID to clear on exit */
4868429401Schs 	long	led_personality;
49cdc6431cSerh };
50a714ac82Sjdolecek 
51cdc6431cSerh #endif /* !_COMMON_LINUX_EMULDATA_H */
52