mtfsb1.c 320 B

1234567891011121314151617181920
  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. mtfsb1(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. }