patch-2.3.16 linux/arch/ppc/math-emu/stfd.c

Next file: linux/arch/ppc/math-emu/stfiwx.c
Previous file: linux/arch/ppc/math-emu/soft-fp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/arch/ppc/math-emu/stfd.c linux/arch/ppc/math-emu/stfd.c
@@ -0,0 +1,23 @@
+/* $Id: stfd.c,v 1.1 1999/08/23 19:00:33 cort Exp $
+ */
+
+#include <linux/types.h>
+#include <linux/errno.h>
+#include <asm/uaccess.h>
+ 
+int
+stfd(void *frS, void *ea)
+{
+#if 0
+#ifdef DEBUG
+	printk("%s: S %p, ea %p: ", __FUNCTION__, frS, ea);
+	dump_double(frS);
+	printk("\n");
+#endif
+#endif
+
+	if (copy_to_user(ea, frS, sizeof(double)))
+		return -EFAULT;
+
+	return 0;
+}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)