android_kernel_cmhtcleo/arch/powerpc/math-emu/stfiwx.c

17 lines
253 B
C
Raw Normal View History

2010-08-27 09:19:57 +00:00
#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;
}