Staging
v0.5.2
https://github.com/torvalds/linux
Raw File
Tip revision: b36f4be3de1b123d8601de062e7dbfc904f305fb authored by Linus Torvalds on 18 August 2013, 21:36:53 UTC
Linux 3.11-rc6
Tip revision: b36f4be
lfd.c
#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;
}
back to top