aboutsummaryrefslogblamecommitdiffstats
path: root/arch/ppc/math-emu/lfd.c
blob: 7d38101c329bfd0abaf0149383a91fbd7c43f81e (plain) (tree)


















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

#include "sfp-machine.h"
#include "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: ", __FUNCTION__, frD, ea);
	dump_double(frD);
	printk("\n");
#endif
	return 0;
}