Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 091bf7624d1c90cec9e578a18529f615213ff847 authored by Linus Torvalds on 09 May 2009, 00:14:14 UTC
Linux 2.6.30-rc5
Tip revision: 091bf76
stfiwx.c
#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;
}
back to top