/arch/powerpc/math-emu/stfiwx.c
http://github.com/mirrors/linux · C · 17 lines · 13 code · 3 blank · 1 comment · 1 complexity · 478f5849247c2941ffcf6da483b374b1 MD5 · raw file
- // SPDX-License-Identifier: GPL-2.0
- #include <linux/types.h>
- #include <linux/errno.h>
- #include <linux/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;
- }