| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 | 
| 2 | #include <linux/types.h> | ||||
| 3 | #include <linux/errno.h> | ||||
| 4 | #include <linux/uaccess.h> | ||||
| 5 | |||||
| 6 | int | ||||
| 7 | stfiwx(u32 *frS, void *ea) | ||||
| 8 | { | ||||
| 9 | #ifdef DEBUG | ||||
| 10 | printk("%s: %p %p\n", __func__, frS, ea); | ||||
| 11 | #endif | ||||
| 12 | |||||
| 13 | if (copy_to_user(ea, &frS[1], sizeof(frS[1]))) | ||||
| 14 | return -EFAULT; | ||||
| 15 | |||||
| 16 | return 0; | ||||
| 17 | } | ||||