xref: /openbmc/linux/arch/powerpc/math-emu/stfd.c (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0
25cd27208SKumar Gala #include <linux/types.h>
35cd27208SKumar Gala #include <linux/errno.h>
47c0f6ba6SLinus Torvalds #include <linux/uaccess.h>
55cd27208SKumar Gala 
65cd27208SKumar Gala int
stfd(void * frS,void * ea)75cd27208SKumar Gala stfd(void *frS, void *ea)
85cd27208SKumar Gala {
95cd27208SKumar Gala #if 0
105cd27208SKumar Gala #ifdef DEBUG
11e48b1b45SHarvey Harrison 	printk("%s: S %p, ea %p: ", __func__, frS, ea);
125cd27208SKumar Gala 	dump_double(frS);
135cd27208SKumar Gala 	printk("\n");
145cd27208SKumar Gala #endif
155cd27208SKumar Gala #endif
165cd27208SKumar Gala 
175cd27208SKumar Gala 	if (copy_to_user(ea, frS, sizeof(double)))
185cd27208SKumar Gala 		return -EFAULT;
195cd27208SKumar Gala 
205cd27208SKumar Gala 	return 0;
215cd27208SKumar Gala }
22