/arch/powerpc/math-emu/stfiwx.c
https://bitbucket.org/cresqo/cm7-p500-kernel · C · 16 lines · 13 code · 3 blank · 0 comment · 1 complexity · 2500209fc3e568aa2096e4f0280585b6 MD5 · raw file
- #include <linux/types.h>
- #include <linux/errno.h>
- #include <asm/uaccess.h>
- int
- stfiwx(u32 *frS, void *ea)
- {
- #ifdef DEBUG
- printk("%s: %p %p\n", __func__, frS, ea);
- #endif
- if (copy_to_user(ea, &frS[1], sizeof(frS[1])))
- return -EFAULT;
- return 0;
- }