xref: /kernel/linux/linux-6.6/arch/powerpc/math-emu/stfiwx.c (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/powerpc/math-emu/
162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#include <linux/types.h>
362306a36Sopenharmony_ci#include <linux/errno.h>
462306a36Sopenharmony_ci#include <linux/uaccess.h>
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciint
762306a36Sopenharmony_cistfiwx(u32 *frS, void *ea)
862306a36Sopenharmony_ci{
962306a36Sopenharmony_ci#ifdef DEBUG
1062306a36Sopenharmony_ci	printk("%s: %p %p\n", __func__, frS, ea);
1162306a36Sopenharmony_ci#endif
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci	if (copy_to_user(ea, &frS[1], sizeof(frS[1])))
1462306a36Sopenharmony_ci		return -EFAULT;
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci	return 0;
1762306a36Sopenharmony_ci}
18

Indexes created Thu Nov 07 10:32:03 CST 2024