regdef.h 599 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 r7
  6. #else
  7. #define syscallid "r7"
  8. #endif
  9. #define regs_syscallid(regs) regs->regs[3]
  10. #define regs_fp(regs) regs->regs[4]
  11. /*
  12. * PSR format:
  13. * | 31 | 30-24 | 23-16 | 15 14 | 13-10 | 9 | 8-0 |
  14. * S VEC TM MM
  15. *
  16. * S: Super Mode
  17. * VEC: Exception Number
  18. * TM: Trace Mode
  19. * MM: Memory unaligned addr access
  20. */
  21. #define DEFAULT_PSR_VALUE 0x80000200
  22. #define SYSTRACE_SAVENUM 5
  23. #define TRAP0_SIZE 4
  24. #endif /* __ASM_CSKY_REGDEF_H */