License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / arch / powerpc / math-emu / mtfsb1.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2#include <linux/types.h>
3#include <linux/errno.h>
7c0f6ba6 4#include <linux/uaccess.h>
1da177e4 5
d2b194ed
KG
6#include <asm/sfp-machine.h>
7#include <math-emu/soft-fp.h>
1da177e4
LT
8
9int
10mtfsb1(int crbD)
11{
12 if ((crbD != 1) && (crbD != 2))
13 __FPU_FPSCR |= (1 << (31 - crbD));
14
15#ifdef DEBUG
e48b1b45 16 printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR);
1da177e4
LT
17#endif
18
19 return 0;
20}