1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun #include <linux/types.h> 3*4882a593Smuzhiyun #include <linux/errno.h> 4*4882a593Smuzhiyun #include <linux/uaccess.h> 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun #include <asm/sfp-machine.h> 7*4882a593Smuzhiyun #include <math-emu/soft-fp.h> 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun int mtfsb1(int crbD)10*4882a593Smuzhiyunmtfsb1(int crbD) 11*4882a593Smuzhiyun { 12*4882a593Smuzhiyun if ((crbD != 1) && (crbD != 2)) 13*4882a593Smuzhiyun __FPU_FPSCR |= (1 << (31 - crbD)); 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun #ifdef DEBUG 16*4882a593Smuzhiyun printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR); 17*4882a593Smuzhiyun #endif 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun return 0; 20*4882a593Smuzhiyun } 21