Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <linux/types.h>
0003 #include <linux/errno.h>
0004 #include <linux/uaccess.h>
0005 
0006 int
0007 stfd(void *frS, void *ea)
0008 {
0009 #if 0
0010 #ifdef DEBUG
0011     printk("%s: S %p, ea %p: ", __func__, frS, ea);
0012     dump_double(frS);
0013     printk("\n");
0014 #endif
0015 #endif
0016 
0017     if (copy_to_user(ea, frS, sizeof(double)))
0018         return -EFAULT;
0019 
0020     return 0;
0021 }