vfs: Make __vfs_write() static
[linux/fpc-iii.git] / arch / powerpc / math-emu / mtfsfi.c
blob45f1edbda3570c61bc33c220a9af71392800ce62
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/types.h>
3 #include <linux/errno.h>
4 #include <linux/uaccess.h>
6 #include <asm/sfp-machine.h>
7 #include <math-emu/soft-fp.h>
9 int
10 mtfsfi(unsigned int crfD, unsigned int IMM)
12 u32 mask = 0xf;
14 if (!crfD)
15 mask = 9;
17 __FPU_FPSCR &= ~(mask << ((7 - crfD) << 2));
18 __FPU_FPSCR |= (IMM & 0xf) << ((7 - crfD) << 2);
20 #ifdef DEBUG
21 printk("%s: %d %x: %08lx\n", __func__, crfD, IMM, __FPU_FPSCR);
22 #endif
24 return 0;