Home | History | Annotate | Line # | Download | only in include
pcb.h revision 1.1
      1  1.1  itojun /*	$NetBSD: pcb.h,v 1.1 1999/09/13 10:31:19 itojun Exp $	*/
      2  1.1  itojun 
      3  1.1  itojun /*-
      4  1.1  itojun  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
      5  1.1  itojun  * Copyright (c) 1990 The Regents of the University of California.
      6  1.1  itojun  * All rights reserved.
      7  1.1  itojun  *
      8  1.1  itojun  * This code is derived from software contributed to Berkeley by
      9  1.1  itojun  * William Jolitz.
     10  1.1  itojun  *
     11  1.1  itojun  * Redistribution and use in source and binary forms, with or without
     12  1.1  itojun  * modification, are permitted provided that the following conditions
     13  1.1  itojun  * are met:
     14  1.1  itojun  * 1. Redistributions of source code must retain the above copyright
     15  1.1  itojun  *    notice, this list of conditions and the following disclaimer.
     16  1.1  itojun  * 2. Redistributions in binary form must reproduce the above copyright
     17  1.1  itojun  *    notice, this list of conditions and the following disclaimer in the
     18  1.1  itojun  *    documentation and/or other materials provided with the distribution.
     19  1.1  itojun  * 3. All advertising materials mentioning features or use of this software
     20  1.1  itojun  *    must display the following acknowledgement:
     21  1.1  itojun  *	This product includes software developed by the University of
     22  1.1  itojun  *	California, Berkeley and its contributors.
     23  1.1  itojun  * 4. Neither the name of the University nor the names of its contributors
     24  1.1  itojun  *    may be used to endorse or promote products derived from this software
     25  1.1  itojun  *    without specific prior written permission.
     26  1.1  itojun  *
     27  1.1  itojun  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     28  1.1  itojun  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     29  1.1  itojun  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     30  1.1  itojun  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     31  1.1  itojun  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     32  1.1  itojun  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     33  1.1  itojun  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     34  1.1  itojun  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     35  1.1  itojun  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     36  1.1  itojun  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     37  1.1  itojun  * SUCH DAMAGE.
     38  1.1  itojun  *
     39  1.1  itojun  *	@(#)pcb.h	5.10 (Berkeley) 5/12/91
     40  1.1  itojun  */
     41  1.1  itojun 
     42  1.1  itojun /*
     43  1.1  itojun  * SH3 process control block
     44  1.1  itojun  *     T.Horiuchi Brains Corp. 05/27/1998
     45  1.1  itojun  */
     46  1.1  itojun 
     47  1.1  itojun #ifndef _SH3_PCB_H_
     48  1.1  itojun #define _SH3_PCB_H_
     49  1.1  itojun 
     50  1.1  itojun #include <sys/signal.h>
     51  1.1  itojun 
     52  1.1  itojun #include <machine/segments.h>
     53  1.1  itojun 
     54  1.1  itojun struct pcb {
     55  1.1  itojun 	int	r0;
     56  1.1  itojun 	int	r1;
     57  1.1  itojun 	int	r2;
     58  1.1  itojun 	int	r3;
     59  1.1  itojun 	int	r4;
     60  1.1  itojun 	int	r5;
     61  1.1  itojun 	int	r6;
     62  1.1  itojun 	int	r7;
     63  1.1  itojun 	int	r8;
     64  1.1  itojun 	int	r9;
     65  1.1  itojun 	int	r10;
     66  1.1  itojun 	int	r11;
     67  1.1  itojun 	int	r12;
     68  1.1  itojun 	int	r13;
     69  1.1  itojun 	int	r14;
     70  1.1  itojun 	int	r15;
     71  1.1  itojun 	int	sr;
     72  1.1  itojun 	int	ssr;
     73  1.1  itojun 	int	gbr;
     74  1.1  itojun 	int	mach;
     75  1.1  itojun 	int	macl;
     76  1.1  itojun 	int	pr;
     77  1.1  itojun 	int	vbr;
     78  1.1  itojun 	int	pc;
     79  1.1  itojun 	int	spc;
     80  1.1  itojun 	int	pcb_tss_sel;
     81  1.1  itojun /*
     82  1.1  itojun  * Software pcb (extension)
     83  1.1  itojun  */
     84  1.1  itojun 	int	kr15;		/* stack pointer in kernel mode */
     85  1.1  itojun 	int	pageDirReg;	/* Page Directory of this process */
     86  1.1  itojun 	int	pcb_flags;
     87  1.1  itojun 	caddr_t	pcb_onfault;	/* copyin/out fault recovery */
     88  1.1  itojun 	int	fusubail;
     89  1.1  itojun #if defined(PMAP_NEW)
     90  1.1  itojun 	struct pmap *pcb_pmap;	/* back pointer to our pmap */
     91  1.1  itojun #endif
     92  1.1  itojun };
     93  1.1  itojun 
     94  1.1  itojun /*
     95  1.1  itojun  * The pcb is augmented with machine-dependent additional data for
     96  1.1  itojun  * core dumps. For the SH3, there is nothing to add.
     97  1.1  itojun  */
     98  1.1  itojun struct md_coredump {
     99  1.1  itojun 	long	md_pad[8];
    100  1.1  itojun };
    101  1.1  itojun 
    102  1.1  itojun #ifdef _KERNEL
    103  1.1  itojun struct pcb *curpcb;		/* our current running pcb */
    104  1.1  itojun #endif
    105  1.1  itojun 
    106  1.1  itojun #endif /* _SH3_PCB_H_ */
    107