blob: d42f1278e9587995a1a02239c105f8c7fd65b298 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#include <linux/types.h>
3#include <linux/errno.h>
Linus Torvalds7c0f6ba2016-12-24 11:46:01 -08004#include <linux/uaccess.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Kumar Galad2b194e2008-06-04 02:59:29 -05006#include <asm/sfp-machine.h>
7#include <math-emu/soft-fp.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9int
10mffs(u32 *frD)
11{
12 frD[1] = __FPU_FPSCR;
13
14#ifdef DEBUG
Harvey Harrisone48b1b42008-03-29 08:21:07 +110015 printk("%s: frD %p: %08x.%08x\n", __func__, frD, frD[0], frD[1]);
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#endif
17
18 return 0;
19}