xref: /netbsd-src/sys/arch/hppa/include/pcb.h (revision 4cc5b607682ceca71f6228ea9e6d734ead006129)
1*4cc5b607Sskrll /*	$NetBSD: pcb.h,v 1.10 2019/04/16 12:25:17 skrll Exp $	*/
2f4f0d8a3Sfredette 
3f4f0d8a3Sfredette /*	$OpenBSD: pcb.h,v 1.6 2000/01/12 07:24:35 mickey Exp $	*/
4f4f0d8a3Sfredette 
5f4f0d8a3Sfredette /*
632381fa0Ssnj  * Copyright (c) 1999-2004 Michael Shalayeff
7f4f0d8a3Sfredette  * 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.
17f4f0d8a3Sfredette  *
18f4f0d8a3Sfredette  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19f4f0d8a3Sfredette  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20f4f0d8a3Sfredette  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21f4f0d8a3Sfredette  * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT,
22f4f0d8a3Sfredette  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23f4f0d8a3Sfredette  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24f4f0d8a3Sfredette  * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25f4f0d8a3Sfredette  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26f4f0d8a3Sfredette  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27f4f0d8a3Sfredette  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28f4f0d8a3Sfredette  * THE POSSIBILITY OF SUCH DAMAGE.
29f4f0d8a3Sfredette  */
30f4f0d8a3Sfredette 
31f4f0d8a3Sfredette 
32f4f0d8a3Sfredette #ifndef _HPPA_PCB_H_
33f4f0d8a3Sfredette #define _HPPA_PCB_H_
34f4f0d8a3Sfredette 
35f4f0d8a3Sfredette #include <machine/reg.h>
36f4f0d8a3Sfredette 
37f4f0d8a3Sfredette struct pcb {
38afd97f35Sskrll 	struct fpreg	*pcb_fpregs;	/* not in the trapframe */
39f4f0d8a3Sfredette 	u_int		pcb_onfault;	/* SW copy fault handler */
40f4f0d8a3Sfredette 	pa_space_t	pcb_space;	/* copy pmap_space, for asm's sake */
41807ed3c6Schs 	u_int		pcb_ksp;	/* kernel sp for ctxsw */
42f4f0d8a3Sfredette };
43f4f0d8a3Sfredette 
44f4f0d8a3Sfredette struct md_coredump {
45f4f0d8a3Sfredette 	struct reg md_reg;
46ae654e47Sskrll 	struct fpreg md_fpreg;
47f4f0d8a3Sfredette };
48f4f0d8a3Sfredette 
49f4f0d8a3Sfredette 
50f4f0d8a3Sfredette #endif /* _HPPA_PCB_H_ */
51