xref: /original-bsd/sys/hp300/include/pcb.h (revision 3705696b)
1 /*
2  * Copyright (c) 1988 University of Utah.
3  * Copyright (c) 1982, 1986, 1990, 1993
4  *	The Regents of the University of California.  All rights reserved.
5  *
6  * This code is derived from software contributed to Berkeley by
7  * the Systems Programming Group of the University of Utah Computer
8  * Science Department.
9  *
10  * %sccs.include.redist.c%
11  *
12  * from: Utah $Hdr: pcb.h 1.14 91/03/25$
13  *
14  *	@(#)pcb.h	8.1 (Berkeley) 06/10/93
15  */
16 
17 #include <machine/frame.h>
18 
19 /*
20  * HP300 process control block
21  */
22 struct pcb
23 {
24 	short	pcb_flags;	/* misc. process flags */
25 	short	pcb_ps; 	/* processor status word */
26 	int	pcb_ustp;	/* user segment table pointer */
27 	int	pcb_usp;	/* user stack pointer */
28 	int	pcb_regs[12];	/* D2-D7, A2-A7 */
29 	caddr_t	pcb_onfault;	/* for copyin/out faults */
30 	struct	fpframe pcb_fpregs; /* 68881/2 context save area */
31 };
32 
33 /*
34  * The pcb is augmented with machine-dependent additional data for
35  * core dumps. For the hp300, this includes an HP-UX exec header
36  * which is dumped for HP-UX processes.
37  */
38 struct md_coredump {
39 	int	md_exec[16];	/* exec structure for HP-UX core dumps */
40 };
41