1*b2441318SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0 25cd27208SKumar Gala #include <linux/types.h> 35cd27208SKumar Gala #include <linux/errno.h> 47c0f6ba6SLinus Torvalds #include <linux/uaccess.h> 55cd27208SKumar Gala 6d2b194edSKumar Gala #include <asm/sfp-machine.h> 7d2b194edSKumar Gala #include <math-emu/double.h> 85cd27208SKumar Gala 95cd27208SKumar Gala int lfd(void * frD,void * ea)105cd27208SKumar Galalfd(void *frD, void *ea) 115cd27208SKumar Gala { 125cd27208SKumar Gala if (copy_from_user(frD, ea, sizeof(double))) 135cd27208SKumar Gala return -EFAULT; 145cd27208SKumar Gala #ifdef DEBUG 15e48b1b45SHarvey Harrison printk("%s: D %p, ea %p: ", __func__, frD, ea); 165cd27208SKumar Gala dump_double(frD); 175cd27208SKumar Gala printk("\n"); 185cd27208SKumar Gala #endif 195cd27208SKumar Gala return 0; 205cd27208SKumar Gala } 21