regdef.h 581 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_CSKY_REGDEF_H
  3. #define __ASM_CSKY_REGDEF_H
  4. #ifdef __ASSEMBLY__
  5. #define syscallid r1
  6. #else
  7. #define syscallid "r1"
  8. #endif
  9. #define regs_syscallid(regs) regs->regs[9]
  10. #define regs_fp(regs) regs->regs[2]
  11. /*
  12. * PSR format:
  13. * | 31 | 30-24 | 23-16 | 15 14 | 13-0 |
  14. * S CPID VEC TM
  15. *
  16. * S: Super Mode
  17. * CPID: Coprocessor id, only 15 for MMU
  18. * VEC: Exception Number
  19. * TM: Trace Mode
  20. */
  21. #define DEFAULT_PSR_VALUE 0x8f000000
  22. #define SYSTRACE_SAVENUM 2
  23. #define TRAP0_SIZE 2
  24. #endif /* __ASM_CSKY_REGDEF_H */