/* SPDX-License-Identifier: GPL-2.0 */12#ifndef __ASM_CSKY_REGDEF_H3#define __ASM_CSKY_REGDEF_H45#ifdef __ASSEMBLY__6#define syscallid r17#else8#define syscallid "r1"9#endif1011#define regs_syscallid(regs) regs->regs[9]12#define regs_fp(regs) regs->regs[2]1314/*15* PSR format:16* | 31 | 30-24 | 23-16 | 15 14 | 13-0 |17* S CPID VEC TM18*19* S: Super Mode20* CPID: Coprocessor id, only 15 for MMU21* VEC: Exception Number22* TM: Trace Mode23*/24#define DEFAULT_PSR_VALUE 0x8f0000002526#define SYSTRACE_SAVENUM 22728#define TRAP0_SIZE 22930#endif /* __ASM_CSKY_REGDEF_H */313233