1139735Simp/*-
2129198Scognet * Copyright (c) 1991 Regents of the University of California.
3129198Scognet * All rights reserved.
4129198Scognet *
5129198Scognet * Redistribution and use in source and binary forms, with or without
6129198Scognet * modification, are permitted provided that the following conditions
7129198Scognet * are met:
8129198Scognet * 1. Redistributions of source code must retain the above copyright
9129198Scognet *    notice, this list of conditions and the following disclaimer.
10129198Scognet * 2. Redistributions in binary form must reproduce the above copyright
11129198Scognet *    notice, this list of conditions and the following disclaimer in the
12129198Scognet *    documentation and/or other materials provided with the distribution.
13129198Scognet * 3. All advertising materials mentioning features or use of this software
14129198Scognet *    must display the following acknowledgement:
15129198Scognet *      This product includes software developed by the University of
16129198Scognet *      California, Berkeley and its contributors.
17129198Scognet * 4. Neither the name of the University nor the names of its contributors
18129198Scognet *    may be used to endorse or promote products derived from this software
19129198Scognet *    without specific prior written permission.
20129198Scognet *
21129198Scognet * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22129198Scognet * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23129198Scognet * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24129198Scognet * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25129198Scognet * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26129198Scognet * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27129198Scognet * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28129198Scognet * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29129198Scognet * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30129198Scognet * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31129198Scognet * SUCH DAMAGE.
32129198Scognet *
33129198Scognet *      from: @(#)proc.h        7.1 (Berkeley) 5/15/91
34129198Scognet *	from: FreeBSD: src/sys/i386/include/proc.h,v 1.11 2001/06/29
35129198Scognet * $FreeBSD$
36129198Scognet */
37129198Scognet
38129198Scognet#ifndef	_MACHINE_PROC_H_
39129198Scognet#define	_MACHINE_PROC_H_
40129198Scognet
41129198Scognet#include <machine/utrap.h>
42129198Scognet
43129198Scognetstruct md_utrap {
44129198Scognet	utrap_entry_t *ut_precise[UT_MAX];	/* must be first */
45129198Scognet	int	ut_refcnt;
46129198Scognet};
47129198Scognet
48129198Scognetstruct mdthread {
49144637Sjhb	int	md_spinlock_count;	/* (k) */
50144637Sjhb	register_t md_saved_cspr;	/* (k) */
51140001Scognet	int md_ptrace_instr;
52140001Scognet	int md_ptrace_addr;
53218310Simp	register_t md_tp;
54188540Scognet	void *md_ras_start;
55188540Scognet	void *md_ras_end;
56129198Scognet};
57129198Scognet
58129198Scognetstruct mdproc {
59129198Scognet	struct	md_utrap *md_utrap;
60129198Scognet	void	*md_sigtramp;
61129198Scognet};
62129198Scognet
63245551Sandrew#ifdef __ARM_EABI__
64245551Sandrew#define	KINFO_PROC_SIZE 816
65245551Sandrew#else
66207269Skib#define	KINFO_PROC_SIZE 792
67245551Sandrew#endif
68207152Skib
69225973Skib#define MAXARGS	8
70225973Skibstruct syscall_args {
71225973Skib	u_int code;
72225973Skib	struct sysent *callp;
73225973Skib	register_t args[MAXARGS];
74225973Skib	int narg;
75225973Skib	u_int nap;
76245551Sandrew#ifndef __ARM_EABI__
77225973Skib	u_int32_t insn;
78245551Sandrew#endif
79225973Skib};
80225973Skib
81129198Scognet#endif /* !_MACHINE_PROC_H_ */
82