Staging
v0.5.2
https://github.com/torvalds/linux
Raw File
Tip revision: 46cf053efec6a3a5f343fead837777efe8252a46 authored by Linus Torvalds on 23 December 2019, 01:02:23 UTC
Linux 5.5-rc3
Tip revision: 46cf053
stfd.c
// SPDX-License-Identifier: GPL-2.0
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/uaccess.h>

int
stfd(void *frS, void *ea)
{
#if 0
#ifdef DEBUG
	printk("%s: S %p, ea %p: ", __func__, frS, ea);
	dump_double(frS);
	printk("\n");
#endif
#endif

	if (copy_to_user(ea, frS, sizeof(double)))
		return -EFAULT;

	return 0;
}
back to top