summaryrefslogtreecommitdiffstats
path: root/kernel/arch/powerpc/math-emu/lfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/powerpc/math-emu/lfd.c')
-rw-r--r--kernel/arch/powerpc/math-emu/lfd.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/arch/powerpc/math-emu/lfd.c b/kernel/arch/powerpc/math-emu/lfd.c
new file mode 100644
index 000000000..79ac76d59
--- /dev/null
+++ b/kernel/arch/powerpc/math-emu/lfd.c
@@ -0,0 +1,19 @@
+#include <linux/types.h>
+#include <linux/errno.h>
+#include <asm/uaccess.h>
+
+#include <asm/sfp-machine.h>
+#include <math-emu/double.h>
+
+int
+lfd(void *frD, void *ea)
+{
+ if (copy_from_user(frD, ea, sizeof(double)))
+ return -EFAULT;
+#ifdef DEBUG
+ printk("%s: D %p, ea %p: ", __func__, frD, ea);
+ dump_double(frD);
+ printk("\n");
+#endif
+ return 0;
+}