patch-2.1.79 linux/include/asm-sparc64/fpumacro.h
Next file: linux/include/asm-sparc64/io.h
Previous file: linux/include/asm-sparc64/floppy.h
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
Mon Jan 12 15:15:58 1998
-  Orig file: 
v2.1.78/linux/include/asm-sparc64/fpumacro.h
-  Orig date: 
Mon Jul  7 08:18:55 1997
diff -u --recursive --new-file v2.1.78/linux/include/asm-sparc64/fpumacro.h linux/include/asm-sparc64/fpumacro.h
@@ -7,6 +7,16 @@
 #ifndef _SPARC64_FPUMACRO_H
 #define _SPARC64_FPUMACRO_H
 
+#include <asm/asi.h>
+
+struct fpustate {
+	u32	regs[64];
+	u64	fsr;
+	u64	gsr;
+};
+
+#define FPUSTATE (struct fpustate *)(((unsigned long)current) + (((PAGE_SIZE<<1)-((64*4)+(2*8))) & ~(64 - 1)))
+
 extern __inline__ unsigned long fprs_read(void)
 {
 	unsigned long retval;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov