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