root/kernel/FPU-emu/fpu_system.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*---------------------------------------------------------------------------+
   2  |  fpu_system.h                                                             |
   3  |                                                                           |
   4  | Copyright (C) 1992    W. Metzenthen, 22 Parker St, Ormond, Vic 3163,      |
   5  |                       Australia.  E-mail apm233m@vaxc.cc.monash.edu.au    |
   6  |                                                                           |
   7  +---------------------------------------------------------------------------*/
   8 
   9 #ifndef _FPU_SYSTEM_H
  10 #define _FPU_SYSTEM_H
  11 
  12 /* system dependent definitions */
  13 
  14 #include <linux/math_emu.h>
  15 #include <linux/kernel.h>
  16 
  17 #define FPU_CS                  (*(unsigned short *) &(FPU_info->___cs))
  18 #define FPU_DS                  (*(unsigned short *) &(FPU_info->___ds))
  19 #define FPU_EFLAGS              (FPU_info->___eflags)
  20 #define FPU_EIP                 (FPU_info->___eip)
  21 #define FPU_ORIG_EIP            (FPU_info->___orig_eip)
  22 
  23 #define status_word             (I387.soft.swd)
  24 #define control_word            (I387.soft.cwd)
  25 #define regs                    ((REG *)(&(I387.soft.regs_space)))
  26 #define top                     (I387.soft.top)
  27 
  28 #define ip_offset               (I387.soft.fip)
  29 #define cs_selector             (I387.soft.fcs)
  30 #define data_operand_offset     (I387.soft.foo)
  31 #define operand_selector        (I387.soft.fos)
  32 
  33 extern  struct info    *FPU_info;
  34 
  35 #endif

/* [previous][next][first][last][top][bottom][index][help] */