WIP FPC-III support
[linux/fpc-iii.git] / arch / csky / abiv1 / inc / abi / regdef.h
blob104707fbdcc1ceaa389659714d3e376038a5351c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ASM_CSKY_REGDEF_H
5 #define __ASM_CSKY_REGDEF_H
7 #define syscallid r1
8 #define regs_syscallid(regs) regs->regs[9]
9 #define regs_fp(regs) regs->regs[2]
12 * PSR format:
13 * | 31 | 30-24 | 23-16 | 15 14 | 13-0 |
14 * S CPID VEC TM
16 * S: Super Mode
17 * CPID: Coprocessor id, only 15 for MMU
18 * VEC: Exception Number
19 * TM: Trace Mode
21 #define DEFAULT_PSR_VALUE 0x8f000000
23 #define SYSTRACE_SAVENUM 2
25 #define TRAP0_SIZE 2
27 #endif /* __ASM_CSKY_REGDEF_H */