home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / bsdss4.tz / bsdss4 / bsdss / server / i386 / npx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-25  |  4.3 KB  |  115 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1992 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie Mellon 
  24.  * the rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    npx.h,v $
  29.  * Revision 2.2  92/05/25  14:42:36  rwd
  30.  *     Added for compatibilty for ptrace.
  31.  *     [92/05/23            rwd]
  32.  * 
  33.  *
  34.  */
  35.  
  36. /*-
  37.  * Copyright (c) 1990 The Regents of the University of California.
  38.  * All rights reserved.
  39.  *
  40.  * This code is derived from software contributed to Berkeley by
  41.  * William Jolitz.
  42.  *
  43.  * Redistribution and use in source and binary forms, with or without
  44.  * modification, are permitted provided that the following conditions
  45.  * are met:
  46.  * 1. Redistributions of source code must retain the above copyright
  47.  *    notice, this list of conditions and the following disclaimer.
  48.  * 2. Redistributions in binary form must reproduce the above copyright
  49.  *    notice, this list of conditions and the following disclaimer in the
  50.  *    documentation and/or other materials provided with the distribution.
  51.  * 3. All advertising materials mentioning features or use of this software
  52.  *    must display the following acknowledgement:
  53.  *    This product includes software developed by the University of
  54.  *    California, Berkeley and its contributors.
  55.  * 4. Neither the name of the University nor the names of its contributors
  56.  *    may be used to endorse or promote products derived from this software
  57.  *    without specific prior written permission.
  58.  *
  59.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  60.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  61.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  62.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  63.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  64.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  65.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  66.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  67.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  68.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  69.  * SUCH DAMAGE.
  70.  *
  71.  *    @(#)npx.h    5.3 (Berkeley) 1/18/91
  72.  */
  73.  
  74. /*
  75.  * 287/387 NPX Coprocessor Data Structures and Constants
  76.  * W. Jolitz 1/90
  77.  */
  78.  
  79. #ifndef    ___NPX87___
  80. #define    ___NPX87___
  81.  
  82. /* Environment information of floating point unit */
  83. struct    env87 {
  84.     long    en_cw;        /* control word (16bits) */
  85.     long    en_sw;        /* status word (16bits) */
  86.     long    en_tw;        /* tag word (16bits) */
  87.     long    en_fip;        /* floating point instruction pointer */
  88.     u_short    en_fcs;        /* floating code segment selector */
  89.     u_short    en_opcode;    /* opcode last executed (11 bits ) */
  90.     long    en_foo;        /* floating operand offset */
  91.     long    en_fos;        /* floating operand segment selector */
  92. };
  93.  
  94. /* Contents of each floating point accumulator */
  95. struct    fpacc87 {
  96.     u_long    fp_mantlo;    /* mantissa low (31:0) */
  97.     u_long    fp_manthi;    /* mantissa high (63:32) */
  98.     int    fp_exp:15;    /* exponent */
  99.     int    fp_sgn:1;    /* mantissa sign */
  100. };
  101.  
  102. /* Floating point context */
  103. struct    save87 {
  104.     struct    env87 sv_env;        /* floating point control/status */
  105.     struct    fpacc87    sv_ac[8];    /* accumulator contents, 0-7 */
  106. };
  107.  
  108. /* Cyrix EMC memory - mapped coprocessor context switch information */
  109. struct    emcsts {
  110.     long    em_msw;        /* memory mapped status register when swtched */
  111.     long    em_tar;        /* memory mapped temp A register when swtched */
  112.     long    em_dl;        /* memory mapped D low register when swtched */
  113. };
  114. #endif    ___NPX87___
  115.