xref: /openbmc/linux/arch/powerpc/math-emu/lfd.c (revision b8d312aa)
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
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