1 #include <linux/types.h>
2 #include <linux/errno.h>
3 #include <linux/uaccess.h>
5 #include <asm/sfp-machine.h>
6 #include <math-emu/soft-fp.h>
9 mcrfs(u32
*ccr
, u32 crfD
, u32 crfS
)
14 printk("%s: %p (%08x) %d %d\n", __func__
, ccr
, *ccr
, crfD
, crfS
);
17 clear
= 15 << ((7 - crfS
) << 2);
21 value
= (__FPU_FPSCR
>> ((7 - crfS
) << 2)) & 15;
22 __FPU_FPSCR
&= ~(clear
);
24 *ccr
&= ~(15 << ((7 - crfD
) << 2));
25 *ccr
|= (value
<< ((7 - crfD
) << 2));
28 printk("CR: %08x\n", __func__
, *ccr
);