xref: /openbsd-src/sys/arch/hppa/include/pcb.h (revision 2df12b22ee779d3f10995325e7cbd0d4be5705a0)
1*2df12b22Sguenther /*	$OpenBSD: pcb.h,v 1.16 2015/05/05 02:13:46 guenther Exp $	*/
2c8b5c9ecSmickey 
3c8b5c9ecSmickey /*
4fef2e65fSmickey  * Copyright (c) 1999-2004 Michael Shalayeff
5c8b5c9ecSmickey  * All rights reserved.
6c8b5c9ecSmickey  *
7c8b5c9ecSmickey  * Redistribution and use in source and binary forms, with or without
8c8b5c9ecSmickey  * modification, are permitted provided that the following conditions
9c8b5c9ecSmickey  * are met:
10c8b5c9ecSmickey  * 1. Redistributions of source code must retain the above copyright
11c8b5c9ecSmickey  *    notice, this list of conditions and the following disclaimer.
12c8b5c9ecSmickey  * 2. Redistributions in binary form must reproduce the above copyright
13c8b5c9ecSmickey  *    notice, this list of conditions and the following disclaimer in the
14c8b5c9ecSmickey  *    documentation and/or other materials provided with the distribution.
15c8b5c9ecSmickey  *
16c8b5c9ecSmickey  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17c8b5c9ecSmickey  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18c8b5c9ecSmickey  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19c8b5c9ecSmickey  * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT,
20c8b5c9ecSmickey  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21c8b5c9ecSmickey  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22c8b5c9ecSmickey  * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23c8b5c9ecSmickey  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
24c8b5c9ecSmickey  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
25c8b5c9ecSmickey  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26c8b5c9ecSmickey  * THE POSSIBILITY OF SUCH DAMAGE.
27c8b5c9ecSmickey  */
28c8b5c9ecSmickey 
296cd5cc56Smickey #ifndef _MACHINE_PCB_H_
306cd5cc56Smickey #define _MACHINE_PCB_H_
316cd5cc56Smickey 
322f8e4113Sjsing #include <machine/fpu.h>
336cd5cc56Smickey #include <machine/reg.h>
34e55ab885Smickey 
35e55ab885Smickey struct pcb {
362f8e4113Sjsing 	struct hppa_fpstate *pcb_fpstate;	/* not in the trapframe */
3703794a4cSkettenis 
389cc87042Sderaadt 	u_int32_t	pcb_ksp;		/* kernel sp for ctxsw */
399cc87042Sderaadt 	u_int32_t	pcb_onfault;		/* SW copy fault handler */
406cd5cc56Smickey 	pa_space_t	pcb_space;		/* copy pmap_space, for asm's sake */
41e55ab885Smickey };
42e55ab885Smickey 
436cd5cc56Smickey #endif /* _MACHINE_PCB_H_ */
44