stfd.c 301 B

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