isadep.h 603 B

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