patch-2.4.9 linux/arch/arm/nwfpe/fpa11.h
Next file: linux/arch/arm/nwfpe/fpa11.inl
Previous file: linux/arch/arm/nwfpe/fpa11.c
Back to the patch index
Back to the overall index
-  Lines: 27
 -  Date:
Sun Aug 12 11:13:59 2001
 -  Orig file: 
v2.4.8/linux/arch/arm/nwfpe/fpa11.h
 -  Orig date: 
Wed Oct 20 16:29:08 1999
 
diff -u --recursive --new-file v2.4.8/linux/arch/arm/nwfpe/fpa11.h linux/arch/arm/nwfpe/fpa11.h
@@ -26,6 +26,9 @@
 #include "fpsr.h"		/* FP control and status register definitions */
 #include "softfloat.h"
 
+/* Need task_struct */
+#include <linux/sched.h>
+
 #define		typeNone		0x00
 #define		typeSingle		0x01
 #define		typeDouble		0x02
@@ -39,6 +42,7 @@
 
 /* FPA11 device model */
 typedef struct tagFPA11 {
+  unsigned int *userRegisters;
   FPREG fpreg[8];		/* 8 floating point registers */
   FPSR fpsr;			/* floating point status register */
   FPCR fpcr;			/* floating point control register */
@@ -56,6 +60,7 @@
 extern void SetRoundingMode(const unsigned int);
 extern void SetRoundingPrecision(const unsigned int);
 
-extern FPA11 *fpa11;
+#define GET_FPA11() ((FPA11 *)(¤t->thread.fpstate))
+#define GET_USERREG() (GET_FPA11()->userRegisters)
 
 #endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)