mtfsb0.c 321 B

12345678910111213141516171819
  1. #include <linux/types.h>
  2. #include <linux/errno.h>
  3. #include <asm/uaccess.h>
  4. #include <asm/sfp-machine.h>
  5. #include <math-emu/soft-fp.h>
  6. int
  7. mtfsb0(int crbD)
  8. {
  9. if ((crbD != 1) && (crbD != 2))
  10. __FPU_FPSCR &= ~(1 << (31 - crbD));
  11. #ifdef DEBUG
  12. printk("%s: %d %08lx\n", __func__, crbD, __FPU_FPSCR);
  13. #endif
  14. return 0;
  15. }