mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 11:36:49 +07:00
20 lines
337 B
C
20 lines
337 B
C
|
#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;
|
||
|
}
|