lfd.c 346 B

1234567891011121314151617181920
  1. #include <linux/types.h>
  2. #include <linux/errno.h>
  3. #include <asm/uaccess.h>
  4. #include <asm/sfp-machine.h>
  5. #include <math-emu/double.h>
  6. int
  7. lfd(void *frD, void *ea)
  8. {
  9. if (copy_from_user(frD, ea, sizeof(double)))
  10. return -EFAULT;
  11. #ifdef DEBUG
  12. printk("%s: D %p, ea %p: ", __func__, frD, ea);
  13. dump_double(frD);
  14. printk("\n");
  15. #endif
  16. return 0;
  17. }