xref: /netbsd-src/sys/arch/hppa/include/proc.h (revision dd6e3d87fed0060d7db97095c36e873a62686824)
1*dd6e3d87Sskrll /*	$NetBSD: proc.h,v 1.15 2023/07/23 10:09:36 skrll Exp $	*/
2f4f0d8a3Sfredette 
30be33f66Sskrll /*	$OpenBSD: proc.h,v 1.4 2009/12/29 13:11:40 jsing Exp $ */
4f4f0d8a3Sfredette 
5f4f0d8a3Sfredette /*
6f4f0d8a3Sfredette  * Copyright (c) 1992, 1993
7f4f0d8a3Sfredette  *	The Regents of the University of California.  All rights reserved.
8f4f0d8a3Sfredette  *
9f4f0d8a3Sfredette  * Redistribution and use in source and binary forms, with or without
10f4f0d8a3Sfredette  * modification, are permitted provided that the following conditions
11f4f0d8a3Sfredette  * are met:
12f4f0d8a3Sfredette  * 1. Redistributions of source code must retain the above copyright
13f4f0d8a3Sfredette  *    notice, this list of conditions and the following disclaimer.
14f4f0d8a3Sfredette  * 2. Redistributions in binary form must reproduce the above copyright
15f4f0d8a3Sfredette  *    notice, this list of conditions and the following disclaimer in the
16f4f0d8a3Sfredette  *    documentation and/or other materials provided with the distribution.
17aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
18f4f0d8a3Sfredette  *    may be used to endorse or promote products derived from this software
19f4f0d8a3Sfredette  *    without specific prior written permission.
20f4f0d8a3Sfredette  *
21f4f0d8a3Sfredette  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22f4f0d8a3Sfredette  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23f4f0d8a3Sfredette  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24f4f0d8a3Sfredette  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25f4f0d8a3Sfredette  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26f4f0d8a3Sfredette  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27f4f0d8a3Sfredette  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28f4f0d8a3Sfredette  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29f4f0d8a3Sfredette  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30f4f0d8a3Sfredette  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31f4f0d8a3Sfredette  * SUCH DAMAGE.
32f4f0d8a3Sfredette  *
33f4f0d8a3Sfredette  *	@(#)proc.h      7.1 (Berkeley) 5/15/91
34f4f0d8a3Sfredette  */
35f4f0d8a3Sfredette 
36cc0b8879Schs #ifndef _HPPA_PROC_H_
37cc0b8879Schs #define _HPPA_PROC_H_
38cc0b8879Schs 
39f4f0d8a3Sfredette /*
4074c813c4Sskrll  * Machine-dependent part of the lwp structure for hppa.
41f4f0d8a3Sfredette  */
42cc0b8879Schs struct mdlwp {
43f4f0d8a3Sfredette 	struct		trapframe *md_regs;	/* registers on current frame */
440be33f66Sskrll 	volatile int	md_astpending;		/* AST pending for this LWP */
45f4f0d8a3Sfredette 	int		md_flags;		/* machine-dependent flags */
46ae654e47Sskrll 
47ab55d2aaSchristos 	__vaddr_t	md_bpva;
48ae654e47Sskrll 	unsigned int	md_bpsave[2];
49f4f0d8a3Sfredette };
50f4f0d8a3Sfredette 
51cc0b8879Schs struct mdproc {
52*dd6e3d87Sskrll 	void	      (*md_syscall)(struct trapframe *, int *);
53*dd6e3d87Sskrll 
541b5cff8fSskrll 	int		md_flags;		/* machine-dependent flags */
55c2019c07Sskrll #define MDP_OLDSPACE	__BIT(0)
56cc0b8879Schs };
57cc0b8879Schs 
58f4f0d8a3Sfredette /* md_flags */
59f4f0d8a3Sfredette 
60cc0b8879Schs #endif /* _HPPA_PROC_H_ */
61