summaryrefslogtreecommitdiffstats
path: root/arch/ppc/math-emu/lfd.c
blob: 11eeb57151581bde3308a83017340ca90596a4d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* $Id: lfd.c,v 1.1 1999/08/23 19:00:08 cort Exp $
 */

#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;
}