xref: /openbmc/linux/arch/powerpc/math-emu/mffs.c (revision c4f7ac64)
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/types.h>
3 #include <linux/errno.h>
4 #include <linux/uaccess.h>
5 
6 #include <asm/sfp-machine.h>
7 #include <math-emu/soft-fp.h>
8 
9 int
10 mffs(u32 *frD)
11 {
12 	frD[1] = __FPU_FPSCR;
13 
14 #ifdef DEBUG
15 	printk("%s: frD %p: %08x.%08x\n", __func__, frD, frD[0], frD[1]);
16 #endif
17 
18 	return 0;
19 }
20