xref: /kernel/linux/linux-5.10/arch/powerpc/math-emu/lfd.c (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/powerpc/math-emu/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#include <linux/types.h>
38c2ecf20Sopenharmony_ci#include <linux/errno.h>
48c2ecf20Sopenharmony_ci#include <linux/uaccess.h>
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <asm/sfp-machine.h>
78c2ecf20Sopenharmony_ci#include <math-emu/double.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciint
108c2ecf20Sopenharmony_cilfd(void *frD, void *ea)
118c2ecf20Sopenharmony_ci{
128c2ecf20Sopenharmony_ci	if (copy_from_user(frD, ea, sizeof(double)))
138c2ecf20Sopenharmony_ci		return -EFAULT;
148c2ecf20Sopenharmony_ci#ifdef DEBUG
158c2ecf20Sopenharmony_ci	printk("%s: D %p, ea %p: ", __func__, frD, ea);
168c2ecf20Sopenharmony_ci	dump_double(frD);
178c2ecf20Sopenharmony_ci	printk("\n");
188c2ecf20Sopenharmony_ci#endif
198c2ecf20Sopenharmony_ci	return 0;
208c2ecf20Sopenharmony_ci}
21

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