xref: /linux/arch/powerpc/math-emu/lfd.c (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/types.h>
3 #include <linux/errno.h>
4 #include <linux/uaccess.h>
5 
6 #include <asm/sfp-machine.h>
7 #include <math-emu/double.h>
8 
9 int
lfd(void * frD,void * ea)10 lfd(void *frD, void *ea)
11 {
12 	if (copy_from_user(frD, ea, sizeof(double)))
13 		return -EFAULT;
14 #ifdef DEBUG
15 	printk("%s: D %p, ea %p: ", __func__, frD, ea);
16 	dump_double(frD);
17 	printk("\n");
18 #endif
19 	return 0;
20 }
21