regdef.h 546 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 r1
  6. #define r11_sig r11
  7. #define regs_syscallid(regs) regs->regs[9]
  8. /*
  9. * PSR format:
  10. * | 31 | 30-24 | 23-16 | 15 14 | 13-0 |
  11. * S CPID VEC TM
  12. *
  13. * S: Super Mode
  14. * CPID: Coprocessor id, only 15 for MMU
  15. * VEC: Exception Number
  16. * TM: Trace Mode
  17. */
  18. #define DEFAULT_PSR_VALUE 0x8f000000
  19. #define SYSTRACE_SAVENUM 2
  20. #endif /* __ASM_CSKY_REGDEF_H */