mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 11:26:40 +07:00
7c0f6ba682
This was entirely automated, using the script by Al: PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>' sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \ $(git grep -l "$PATT"|grep -v ^include/linux/uaccess.h) to do the replacement at the end of the merge window. Requested-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
25 lines
427 B
C
25 lines
427 B
C
#include <linux/types.h>
|
|
#include <linux/errno.h>
|
|
#include <linux/uaccess.h>
|
|
|
|
#include <asm/sfp-machine.h>
|
|
#include <math-emu/soft-fp.h>
|
|
|
|
int
|
|
mtfsfi(unsigned int crfD, unsigned int IMM)
|
|
{
|
|
u32 mask = 0xf;
|
|
|
|
if (!crfD)
|
|
mask = 9;
|
|
|
|
__FPU_FPSCR &= ~(mask << ((7 - crfD) << 2));
|
|
__FPU_FPSCR |= (IMM & 0xf) << ((7 - crfD) << 2);
|
|
|
|
#ifdef DEBUG
|
|
printk("%s: %d %x: %08lx\n", __func__, crfD, IMM, __FPU_FPSCR);
|
|
#endif
|
|
|
|
return 0;
|
|
}
|