summaryrefslogtreecommitdiffstats
path: root/arch/ppc/math-emu/stfiwx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/math-emu/stfiwx.c')
-rw-r--r--arch/ppc/math-emu/stfiwx.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/ppc/math-emu/stfiwx.c b/arch/ppc/math-emu/stfiwx.c
new file mode 100644
index 000000000..63b1dfc15
--- /dev/null
+++ b/arch/ppc/math-emu/stfiwx.c
@@ -0,0 +1,19 @@
+/* $Id: stfiwx.c,v 1.1 1999/08/23 19:00:34 cort Exp $
+ */
+
+#include <linux/types.h>
+#include <linux/errno.h>
+#include <asm/uaccess.h>
+
+int
+stfiwx(u32 *frS, void *ea)
+{
+#ifdef DEBUG
+ printk("%s: %p %p\n", __FUNCTION__, frS, ea);
+#endif
+
+ if (copy_to_user(ea, &frS[1], sizeof(frS[1])))
+ return -EFAULT;
+
+ return 0;
+}