aboutsummaryrefslogblamecommitdiffstats
path: root/arch/powerpc/math-emu/lfd.c
blob: 79ac76d596c31f30279bb678a600be120308d750 (plain) (tree)
1
2
3
4
5
6



                        

                            






                                                    
                                                       




                         
#include <linux/types.h>
#include <linux/errno.h>
#include <asm/uaccess.h>

#include <asm/sfp-machine.h>
#include <math-emu/double.h>

int
lfd(void *frD, void *ea)
{
	if (copy_from_user(frD, ea, sizeof(double)))
		return -EFAULT;
#ifdef DEBUG
	printk("%s: D %p, ea %p: ", __func__, frD, ea);
	dump_double(frD);
	printk("\n");
#endif
	return 0;
}