blob: 3a6b03d999ab6eb77375af7bbbdbeb5642381bc6 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#include <linux/types.h>
3#include <linux/errno.h>
Linus Torvalds7c0f6ba2016-12-24 11:46:01 -08004#include <linux/uaccess.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Kumar Galad2b194e2008-06-04 02:59:29 -05006#include <asm/sfp-machine.h>
7#include <math-emu/double.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9int
10lfd(void *frD, void *ea)
11{
12 if (copy_from_user(frD, ea, sizeof(double)))
13 return -EFAULT;
14#ifdef DEBUG
Harvey Harrisone48b1b42008-03-29 08:21:07 +110015 printk("%s: D %p, ea %p: ", __func__, frD, ea);
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 dump_double(frD);
17 printk("\n");
18#endif
19 return 0;
20}