1 /* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 4 * 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 7.5 (Berkeley) 06/05/92 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 int pcb_exec[16]; /* exec structure for core dumps */ 32 }; 33 34 /* flags */ 35 36 #define PCB_HPUXMMAP 0x0010 /* VA space is multiple mapped */ 37 #define PCB_HPUXTRACE 0x0020 /* being traced by an HPUX process */ 38 #define PCB_HPUXBIN 0x0040 /* loaded from an HPUX format binary */ 39 /* note: does NOT imply SHPUX */ 40 #define PCB_CCBDATA 0x0100 /* copyback caching of data */ 41 #define PCB_CCBSTACK 0x0200 /* copyback caching of stack */ 42