stfiwx.c 253 B

12345678910111213141516
  1. #include <linux/types.h>
  2. #include <linux/errno.h>
  3. #include <asm/uaccess.h>
  4. int
  5. stfiwx(u32 *frS, void *ea)
  6. {
  7. #ifdef DEBUG
  8. printk("%s: %p %p\n", __func__, frS, ea);
  9. #endif
  10. if (copy_to_user(ea, &frS[1], sizeof(frS[1])))
  11. return -EFAULT;
  12. return 0;
  13. }