pcb.h revision 1.5.16.1 1 1.5.16.1 yamt /* $NetBSD: pcb.h,v 1.5.16.1 2007/09/03 14:23:41 yamt Exp $ */
2 1.1 leo
3 1.1 leo /*
4 1.1 leo * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
5 1.1 leo * All rights reserved.
6 1.5 agc *
7 1.5 agc * This code is derived from software contributed to Berkeley by
8 1.5 agc * the Systems Programming Group of the University of Utah Computer
9 1.5 agc * Science Department.
10 1.5 agc *
11 1.5 agc * Redistribution and use in source and binary forms, with or without
12 1.5 agc * modification, are permitted provided that the following conditions
13 1.5 agc * are met:
14 1.5 agc * 1. Redistributions of source code must retain the above copyright
15 1.5 agc * notice, this list of conditions and the following disclaimer.
16 1.5 agc * 2. Redistributions in binary form must reproduce the above copyright
17 1.5 agc * notice, this list of conditions and the following disclaimer in the
18 1.5 agc * documentation and/or other materials provided with the distribution.
19 1.5 agc * 3. Neither the name of the University nor the names of its contributors
20 1.5 agc * may be used to endorse or promote products derived from this software
21 1.5 agc * without specific prior written permission.
22 1.5 agc *
23 1.5 agc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 1.5 agc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 1.5 agc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 1.5 agc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 1.5 agc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 1.5 agc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 1.5 agc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 1.5 agc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 1.5 agc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 1.5 agc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 1.5 agc * SUCH DAMAGE.
34 1.5 agc *
35 1.5 agc * from: Utah $Hdr: pcb.h 1.13 89/04/23$
36 1.5 agc *
37 1.5 agc * @(#)pcb.h 7.4 (Berkeley) 5/4/91
38 1.5 agc */
39 1.5 agc /*
40 1.5 agc * Copyright (c) 1988 University of Utah.
41 1.1 leo *
42 1.1 leo * This code is derived from software contributed to Berkeley by
43 1.1 leo * the Systems Programming Group of the University of Utah Computer
44 1.1 leo * Science Department.
45 1.1 leo *
46 1.1 leo * Redistribution and use in source and binary forms, with or without
47 1.1 leo * modification, are permitted provided that the following conditions
48 1.1 leo * are met:
49 1.1 leo * 1. Redistributions of source code must retain the above copyright
50 1.1 leo * notice, this list of conditions and the following disclaimer.
51 1.1 leo * 2. Redistributions in binary form must reproduce the above copyright
52 1.1 leo * notice, this list of conditions and the following disclaimer in the
53 1.1 leo * documentation and/or other materials provided with the distribution.
54 1.1 leo * 3. All advertising materials mentioning features or use of this software
55 1.1 leo * must display the following acknowledgement:
56 1.1 leo * This product includes software developed by the University of
57 1.1 leo * California, Berkeley and its contributors.
58 1.1 leo * 4. Neither the name of the University nor the names of its contributors
59 1.1 leo * may be used to endorse or promote products derived from this software
60 1.1 leo * without specific prior written permission.
61 1.1 leo *
62 1.1 leo * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
63 1.1 leo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
64 1.1 leo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
65 1.1 leo * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
66 1.1 leo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
67 1.1 leo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
68 1.1 leo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
69 1.1 leo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
70 1.1 leo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
71 1.1 leo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
72 1.1 leo * SUCH DAMAGE.
73 1.1 leo *
74 1.1 leo * from: Utah $Hdr: pcb.h 1.13 89/04/23$
75 1.1 leo *
76 1.1 leo * @(#)pcb.h 7.4 (Berkeley) 5/4/91
77 1.1 leo */
78 1.1 leo
79 1.1 leo #ifndef _MACHINE_PCB_H_
80 1.1 leo #define _MACHINE_PCB_H_
81 1.1 leo
82 1.1 leo #include <machine/frame.h>
83 1.1 leo
84 1.1 leo /*
85 1.1 leo * ATARI process control block
86 1.1 leo */
87 1.1 leo struct pcb
88 1.1 leo {
89 1.1 leo short pcb_flags; /* misc. process flags (+0) */
90 1.1 leo short pcb_ps; /* processor status word (+2) */
91 1.3 thorpej int __pcb_spare0;
92 1.1 leo int pcb_usp; /* user stack pointer (+8) */
93 1.2 leo int pcb_regs[12]; /* D2-D7, A2-A7 (+C) */
94 1.1 leo int pcb_cmap2; /* temporary copy PTE */
95 1.5.16.1 yamt void * pcb_onfault; /* for copyin/out faults */
96 1.1 leo struct fpframe pcb_fpregs; /* 68881/2 context save area */
97 1.1 leo int pcb_exec[16]; /* exec structure for core dumps */
98 1.1 leo };
99 1.4 leo
100 1.4 leo /* Positions within pcb_regs[] of A6 and A7 (FP and SP). For m68k DDB. */
101 1.4 leo #define PCB_REGS_FP 10
102 1.4 leo #define PCB_REGS_SP 11
103 1.1 leo
104 1.1 leo /* flags (none currently used) */
105 1.1 leo
106 1.1 leo /*
107 1.1 leo * The pcb is augmented with machine-dependent additional data for
108 1.1 leo * core dumps. For the hp300, this includes an HP-UX exec header
109 1.1 leo * which is dumped for HP-UX processes.
110 1.1 leo */
111 1.1 leo struct md_coredump {
112 1.1 leo int md_exec[16]; /* exec structure for HP-UX core dumps */
113 1.1 leo };
114 1.1 leo
115 1.1 leo #endif /* !_MACHINE_PCB_H_ */
116