Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 #ifndef __ASM_CSKY_REGDEF_H
0004 #define __ASM_CSKY_REGDEF_H
0005 
0006 #ifdef __ASSEMBLY__
0007 #define syscallid   r1
0008 #else
0009 #define syscallid   "r1"
0010 #endif
0011 
0012 #define regs_syscallid(regs) regs->regs[9]
0013 #define regs_fp(regs) regs->regs[2]
0014 
0015 /*
0016  * PSR format:
0017  * | 31 | 30-24 | 23-16 | 15 14 | 13-0 |
0018  *   S     CPID     VEC     TM
0019  *
0020  *    S: Super Mode
0021  * CPID: Coprocessor id, only 15 for MMU
0022  *  VEC: Exception Number
0023  *   TM: Trace Mode
0024  */
0025 #define DEFAULT_PSR_VALUE   0x8f000000
0026 
0027 #define SYSTRACE_SAVENUM    2
0028 
0029 #define TRAP0_SIZE      2
0030 
0031 #endif /* __ASM_CSKY_REGDEF_H */