xref: /linux/arch/powerpc/math-emu/lfd.c (revision 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba)
15cd27208SKumar Gala #include <linux/types.h>
25cd27208SKumar Gala #include <linux/errno.h>
3*7c0f6ba6SLinus Torvalds #include <linux/uaccess.h>
45cd27208SKumar Gala 
5d2b194edSKumar Gala #include <asm/sfp-machine.h>
6d2b194edSKumar Gala #include <math-emu/double.h>
75cd27208SKumar Gala 
85cd27208SKumar Gala int
95cd27208SKumar Gala lfd(void *frD, void *ea)
105cd27208SKumar Gala {
115cd27208SKumar Gala 	if (copy_from_user(frD, ea, sizeof(double)))
125cd27208SKumar Gala 		return -EFAULT;
135cd27208SKumar Gala #ifdef DEBUG
14e48b1b45SHarvey Harrison 	printk("%s: D %p, ea %p: ", __func__, frD, ea);
155cd27208SKumar Gala 	dump_double(frD);
165cd27208SKumar Gala 	printk("\n");
175cd27208SKumar Gala #endif
185cd27208SKumar Gala 	return 0;
195cd27208SKumar Gala }
20