18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci#include <linux/types.h> 38c2ecf20Sopenharmony_ci#include <linux/errno.h> 48c2ecf20Sopenharmony_ci#include <linux/uaccess.h> 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <asm/sfp-machine.h> 78c2ecf20Sopenharmony_ci#include <math-emu/soft-fp.h> 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciint 108c2ecf20Sopenharmony_cimtfsb1(int crbD) 118c2ecf20Sopenharmony_ci{ 128c2ecf20Sopenharmony_ci if ((crbD != 1) && (crbD != 2)) 138c2ecf20Sopenharmony_ci __FPU_FPSCR |= (1 << (31 - crbD)); 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#ifdef DEBUG 168c2ecf20Sopenharmony_ci printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR); 178c2ecf20Sopenharmony_ci#endif 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci return 0; 208c2ecf20Sopenharmony_ci} 21