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/sched.h>
  15 #include <linux/kernel.h>
  16 
  17 #define I387                    (current->tss.i387)
  18 #define FPU_info                (I387.soft.info)
  19 
  20 #define FPU_CS                  (*(unsigned short *) &(FPU_info->___cs))
  21 #define FPU_DS                  (*(unsigned short *) &(FPU_info->___ds))
  22 #define FPU_EAX                 (FPU_info->___eax)
  23 #define FPU_EFLAGS              (FPU_info->___eflags)
  24 #define FPU_EIP                 (FPU_info->___eip)
  25 #define FPU_ORIG_EIP            (FPU_info->___orig_eip)
  26 
  27 #define FPU_lookahead           (I387.soft.lookahead)
  28 #define FPU_entry_eip           (I387.soft.entry_eip)
  29 
  30 #define status_word             (I387.soft.swd)
  31 #define control_word            (I387.soft.cwd)
  32 #define regs                    (I387.soft.regs)
  33 #define top                     (I387.soft.top)
  34 
  35 #define ip_offset               (I387.soft.fip)
  36 #define cs_selector             (I387.soft.fcs)
  37 #define data_operand_offset     (I387.soft.foo)
  38 #define operand_selector        (I387.soft.fos)
  39 
  40 #endif

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