blob: 8162c3bfd149a526f475d793616b63cf960ad1db [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#include <linux/types.h>
3#include <linux/errno.h>
Linus Torvalds7c0f6ba2016-12-24 11:46:01 -08004#include <linux/uaccess.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Kumar Galad2b194e2008-06-04 02:59:29 -05006#include <asm/sfp-machine.h>
7#include <math-emu/soft-fp.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9int
10mtfsb1(int crbD)
11{
12 if ((crbD != 1) && (crbD != 2))
13 __FPU_FPSCR |= (1 << (31 - crbD));
14
15#ifdef DEBUG
Harvey Harrisone48b1b42008-03-29 08:21:07 +110016 printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR);
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#endif
18
19 return 0;
20}