rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 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 | } |