1 #include <linux/types.h>
2 #include <linux/errno.h>
3 #include <asm/uaccess.h>
8 mcrfs(u32 *ccr, u32 crfD, u32 crfS)
13 printk("%s: %p (%08x) %d %d\n", __FUNCTION__, ccr, *ccr, crfD, crfS);
16 clear = 15 << ((7 - crfS) << 2);
20 value = (__FPU_FPSCR >> ((7 - crfS) << 2)) & 15;
21 __FPU_FPSCR &= ~(clear);
23 *ccr &= ~(15 << ((7 - crfD) << 2));
24 *ccr |= (value << ((7 - crfD) << 2));
27 printk("CR: %08x\n", __FUNCTION__, *ccr);