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