regdef.h 564 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
  3. #ifndef __ASM_CSKY_REGDEF_H
  4. #define __ASM_CSKY_REGDEF_H
  5. #define syscallid r7
  6. #define r11_sig r11
  7. #define regs_syscallid(regs) regs->regs[3]
  8. /*
  9. * PSR format:
  10. * | 31 | 30-24 | 23-16 | 15 14 | 13-10 | 9 | 8-0 |
  11. * S VEC TM MM
  12. *
  13. * S: Super Mode
  14. * VEC: Exception Number
  15. * TM: Trace Mode
  16. * MM: Memory unaligned addr access
  17. */
  18. #define DEFAULT_PSR_VALUE 0x80000200
  19. #define SYSTRACE_SAVENUM 5
  20. #endif /* __ASM_CSKY_REGDEF_H */