File: /usr/src/linux/arch/ppc/math-emu/stfiwx.c

1     /*
2      * BK Id: SCCS/s.stfiwx.c 1.6 05/17/01 18:14:23 cort
3      */
4     #include <linux/types.h>
5     #include <linux/errno.h>
6     #include <asm/uaccess.h>
7     
8     int
9     stfiwx(u32 *frS, void *ea)
10     {
11     #ifdef DEBUG
12     	printk("%s: %p %p\n", __FUNCTION__, frS, ea);
13     #endif
14     
15     	if (copy_to_user(ea, &frS[1], sizeof(frS[1])))
16     		return -EFAULT;
17     
18     	return 0;
19     }
20