summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/math-emu/stfiwx.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-03-28 08:03:19 +0200
committerPaul Mackerras <paulus@samba.org>2006-03-28 08:03:19 +0200
commitcf66c897d7fa07f57452b1a369aec37d97b11e31 (patch)
treeeb74b71c2ff288f4d77423bb7e54c3c55ef08bf9 /arch/powerpc/math-emu/stfiwx.c
parentMerge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/po... (diff)
parentpowerpc: remove OCP references (diff)
downloadlinux-cf66c897d7fa07f57452b1a369aec37d97b11e31.tar.xz
linux-cf66c897d7fa07f57452b1a369aec37d97b11e31.zip
Merge branch '85xx' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc
Diffstat (limited to 'arch/powerpc/math-emu/stfiwx.c')
-rw-r--r--arch/powerpc/math-emu/stfiwx.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/powerpc/math-emu/stfiwx.c b/arch/powerpc/math-emu/stfiwx.c
new file mode 100644
index 000000000000..95caaeec6a08
--- /dev/null
+++ b/arch/powerpc/math-emu/stfiwx.c
@@ -0,0 +1,16 @@
+#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;
+}