blob: 24ae9622fed6d4d06bd2339bdfadc5c24d68e80a [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#include <linux/types.h>
3#include <linux/errno.h>
Linus Torvalds7c0f6ba2016-12-24 11:46:01 -08004#include <linux/uaccess.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
6int
7stfiwx(u32 *frS, void *ea)
8{
9#ifdef DEBUG
Harvey Harrisone48b1b42008-03-29 08:21:07 +110010 printk("%s: %p %p\n", __func__, frS, ea);
Linus Torvalds1da177e2005-04-16 15:20:36 -070011#endif
12
13 if (copy_to_user(ea, &frS[1], sizeof(frS[1])))
14 return -EFAULT;
15
16 return 0;
17}