pcb.h revision 1.1
11.1Schuck/* $NetBSD: pcb.h,v 1.1 1995/07/25 23:12:16 chuck Exp $ */ 21.1Schuck 31.1Schuck/* 41.1Schuck * Copyright (c) 1988 University of Utah. 51.1Schuck * Copyright (c) 1982, 1986, 1990, 1993 61.1Schuck * The Regents of the University of California. All rights reserved. 71.1Schuck * 81.1Schuck * This code is derived from software contributed to Berkeley by 91.1Schuck * the Systems Programming Group of the University of Utah Computer 101.1Schuck * Science Department. 111.1Schuck * 121.1Schuck * Redistribution and use in source and binary forms, with or without 131.1Schuck * modification, are permitted provided that the following conditions 141.1Schuck * are met: 151.1Schuck * 1. Redistributions of source code must retain the above copyright 161.1Schuck * notice, this list of conditions and the following disclaimer. 171.1Schuck * 2. Redistributions in binary form must reproduce the above copyright 181.1Schuck * notice, this list of conditions and the following disclaimer in the 191.1Schuck * documentation and/or other materials provided with the distribution. 201.1Schuck * 3. All advertising materials mentioning features or use of this software 211.1Schuck * must display the following acknowledgement: 221.1Schuck * This product includes software developed by the University of 231.1Schuck * California, Berkeley and its contributors. 241.1Schuck * 4. Neither the name of the University nor the names of its contributors 251.1Schuck * may be used to endorse or promote products derived from this software 261.1Schuck * without specific prior written permission. 271.1Schuck * 281.1Schuck * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 291.1Schuck * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 301.1Schuck * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 311.1Schuck * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 321.1Schuck * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 331.1Schuck * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 341.1Schuck * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 351.1Schuck * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 361.1Schuck * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 371.1Schuck * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 381.1Schuck * SUCH DAMAGE. 391.1Schuck * 401.1Schuck * from: Utah $Hdr: pcb.h 1.14 91/03/25$ 411.1Schuck * 421.1Schuck * @(#)pcb.h 8.1 (Berkeley) 6/10/93 431.1Schuck */ 441.1Schuck 451.1Schuck#include <machine/frame.h> 461.1Schuck 471.1Schuck/* 481.1Schuck * mvme68k process control block 491.1Schuck */ 501.1Schuckstruct pcb { 511.1Schuck short pcb_flags; /* misc. process flags */ 521.1Schuck short pcb_ps; /* processor status word */ 531.1Schuck int pcb_ustp; /* user segment table pointer */ 541.1Schuck int pcb_usp; /* user stack pointer */ 551.1Schuck int pcb_regs[12]; /* D2-D7, A2-A7 */ 561.1Schuck caddr_t pcb_onfault; /* for copyin/out faults */ 571.1Schuck struct fpframe pcb_fpregs; /* 68881/2 context save area */ 581.1Schuck}; 591.1Schuck 601.1Schuck/* 611.1Schuck * The pcb is augmented with machine-dependent additional data for 621.1Schuck * core dumps. For the hp300, this includes an HP-UX exec header 631.1Schuck * which is dumped for HP-UX processes. 641.1Schuck */ 651.1Schuckstruct md_coredump { 661.1Schuck int md_exec[16]; /* exec structure for HP-UX core dumps */ 671.1Schuck}; 68