npx.h (27542) | npx.h (46129) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)npx.h 5.3 (Berkeley) 1/18/91 | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)npx.h 5.3 (Berkeley) 1/18/91 |
37 * $Id: npx.h,v 1.13 1997/06/22 16:03:50 peter Exp $ | 37 * $Id: npx.h,v 1.14 1997/07/20 11:06:44 bde Exp $ |
38 */ 39 40/* 41 * 287/387 NPX Coprocessor Data Structures and Constants 42 * W. Jolitz 1/90 43 */ 44 45#ifndef _MACHINE_NPX_H_ 46#define _MACHINE_NPX_H_ 47 | 38 */ 39 40/* 41 * 287/387 NPX Coprocessor Data Structures and Constants 42 * W. Jolitz 1/90 43 */ 44 45#ifndef _MACHINE_NPX_H_ 46#define _MACHINE_NPX_H_ 47 |
48#include <machine/globals.h> 49 |
|
48/* Environment information of floating point unit */ 49struct env87 { 50 long en_cw; /* control word (16bits) */ 51 long en_sw; /* status word (16bits) */ 52 long en_tw; /* tag word (16bits) */ 53 long en_fip; /* floating point instruction pointer */ 54 u_short en_fcs; /* floating code segment selector */ 55 u_short en_opcode; /* opcode last executed (11 bits ) */ --- 74 unchanged lines hidden (view full) --- 130#else 131#define __INITIAL_NPXCW__ __iBCS_NPXCW__ 132#endif 133#else 134#define __INITIAL_NPXCW__ __BDE_NPXCW__ 135#endif 136 137#ifdef KERNEL | 50/* Environment information of floating point unit */ 51struct env87 { 52 long en_cw; /* control word (16bits) */ 53 long en_sw; /* status word (16bits) */ 54 long en_tw; /* tag word (16bits) */ 55 long en_fip; /* floating point instruction pointer */ 56 u_short en_fcs; /* floating code segment selector */ 57 u_short en_opcode; /* opcode last executed (11 bits ) */ --- 74 unchanged lines hidden (view full) --- 132#else 133#define __INITIAL_NPXCW__ __iBCS_NPXCW__ 134#endif 135#else 136#define __INITIAL_NPXCW__ __BDE_NPXCW__ 137#endif 138 139#ifdef KERNEL |
140#ifndef npxproc |
|
138extern struct proc *npxproc; | 141extern struct proc *npxproc; |
142#endif |
|
139 140int npxdna __P((void)); 141void npxexit __P((struct proc *p)); 142void npxinit __P((int control)); 143void npxsave __P((struct save87 *addr)); 144#endif 145 146#endif /* !_MACHINE_NPX_H_ */ | 143 144int npxdna __P((void)); 145void npxexit __P((struct proc *p)); 146void npxinit __P((int control)); 147void npxsave __P((struct save87 *addr)); 148#endif 149 150#endif /* !_MACHINE_NPX_H_ */ |