Home | History | Annotate | Line # | Download | only in include
proc.h revision 1.10
      1 /* $NetBSD: proc.h,v 1.10 2001/04/26 03:10:46 ross Exp $ */
      2 
      3 /*
      4  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
      5  * All rights reserved.
      6  *
      7  * Author: Chris G. Demetriou
      8  *
      9  * Permission to use, copy, modify and distribute this software and
     10  * its documentation is hereby granted, provided that both the copyright
     11  * notice and this permission notice appear in all copies of the
     12  * software, derivative works or modified versions, and any portions
     13  * thereof, and that both notices appear in supporting documentation.
     14  *
     15  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     16  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     17  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     18  *
     19  * Carnegie Mellon requests users of this software to return to
     20  *
     21  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     22  *  School of Computer Science
     23  *  Carnegie Mellon University
     24  *  Pittsburgh PA 15213-3890
     25  *
     26  * any improvements or extensions that they make and grant Carnegie the
     27  * rights to redistribute these changes.
     28  */
     29 
     30 #include <machine/frame.h>
     31 
     32 /*
     33  * Machine-dependent part of the proc struct for the Alpha.
     34  */
     35 struct proc;
     36 struct mdproc {
     37 	u_long	md_flags;
     38 	struct	trapframe *md_tf;	/* trap/syscall registers */
     39 	struct pcb *md_pcbpaddr;	/* phys addr of the pcb */
     40 					/* this process's syscall vector */
     41 	void	(*md_syscall)(struct proc *, u_int64_t, struct trapframe *);
     42 	__volatile int md_astpending;	/* AST pending for this process */
     43 };
     44 /*
     45  * md_flags usage
     46  * --------------
     47  * MDP_FPUSED
     48  * 	A largely unused bit indicating the presence of FPU history.
     49  * 	Cleared on exec. Set but not used by the fpu context switcher
     50  * 	itself.
     51  *
     52  * MDP_FP_C
     53  * 	The architected FP Control word. It should forever begin at bit 1,
     54  * 	as the bits are AARM specified and this way it doesn't need to be
     55  * 	shifted.
     56  *
     57  * 	Until C99 there was never an IEEE 754 API, making most of the
     58  * 	standard useless.  Because of overlapping AARM, OSF/1, NetBSD, and
     59  * 	C99 API's, the use of the MDP_FP_C bits is defined variously in
     60  * 	ieeefp.h and fpu.h.
     61  */
     62 #define	MDP_FPUSED	0x0001		/* Process used the FPU */
     63 #define	MDP_FP_C      0x7ffffe		/* Extended FP_C Quadword bits */
     64