isadep.h 564 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Various ISA level dependent constants.
  3. * Most of the following constants reflect the different layout
  4. * of Coprocessor 0 registers.
  5. *
  6. * Copyright (c) 1998 Harald Koerfgen
  7. */
  8. #ifndef __ASM_ISADEP_H
  9. #define __ASM_ISADEP_H
  10. #if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_TX39XX)
  11. /*
  12. * R2000 or R3000
  13. */
  14. /*
  15. * kernel or user mode? (CP0_STATUS)
  16. */
  17. #define KU_MASK 0x08
  18. #define KU_USER 0x08
  19. #define KU_KERN 0x00
  20. #else
  21. /*
  22. * kernel or user mode?
  23. */
  24. #define KU_MASK 0x18
  25. #define KU_USER 0x10
  26. #define KU_KERN 0x00
  27. #endif
  28. #endif /* __ASM_ISADEP_H */