1 /* $NetBSD: proc.h,v 1.17 2007/02/09 21:55:01 ad Exp $ */
4 * Copyright (c) 1994, 1995 Carnegie-Mellon University.
7 * Author: Chris G. Demetriou
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.
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.
19 * Carnegie Mellon requests users of this software to return to
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
33 #include <sys/user.h> /* for sizeof(struct user) */
34 #include <machine/frame.h>
37 * Machine-dependent part of the lwp struct for the Alpha.
41 struct trapframe
*md_tf
; /* trap/syscall registers */
42 struct pcb
*md_pcbpaddr
; /* phys addr of the pcb */
43 volatile int md_astpending
; /* AST pending for this process */
49 * A largely unused bit indicating the presence of FPU history.
50 * Cleared on exec. Set but not used by the fpu context switcher
54 * The architected FP Control word. It should forever begin at bit 1,
55 * as the bits are AARM specified and this way it doesn't need to be
58 * Until C99 there was never an IEEE 754 API, making most of the
59 * standard useless. Because of overlapping AARM, OSF/1, NetBSD, and
60 * C99 API's, the use of the MDP_FP_C bits is defined variously in
63 #define MDP_FPUSED 0x00000001 /* Process used the FPU */
64 #define MDP_FP_C 0x007ffffe /* Extended FP_C Quadword bits */
67 * Machine-dependent part of the proc struct for the Alpha.
71 /* this process's syscall vector */
72 void (*md_syscall
)(struct lwp
*, u_int64_t
, struct trapframe
*);
76 #endif /* !_ALPHA_PROC_H_ */