1*b2441318SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0 25cd27208SKumar Gala #include <linux/types.h> 35cd27208SKumar Gala #include <linux/errno.h> 47c0f6ba6SLinus Torvalds #include <linux/uaccess.h> 55cd27208SKumar Gala 6d2b194edSKumar Gala #include <asm/sfp-machine.h> 7d2b194edSKumar Gala #include <math-emu/soft-fp.h> 85cd27208SKumar Gala 95cd27208SKumar Gala int 105cd27208SKumar Gala mtfsb1(int crbD) 115cd27208SKumar Gala { 125cd27208SKumar Gala if ((crbD != 1) && (crbD != 2)) 135cd27208SKumar Gala __FPU_FPSCR |= (1 << (31 - crbD)); 145cd27208SKumar Gala 155cd27208SKumar Gala #ifdef DEBUG 16e48b1b45SHarvey Harrison printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR); 175cd27208SKumar Gala #endif 185cd27208SKumar Gala 195cd27208SKumar Gala return 0; 205cd27208SKumar Gala } 21