spi: efm32: Convert to use GPIO descriptors
[linux/fpc-iii.git] / arch / csky / abiv2 / inc / abi / regdef.h
blobd7328bbc1ce7ad7c44a6d4934a24f619d744a422
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 r7
8 #define regs_syscallid(regs) regs->regs[3]
9 #define regs_fp(regs) regs->regs[4]
12 * PSR format:
13 * | 31 | 30-24 | 23-16 | 15 14 | 13-10 | 9 | 8-0 |
14 * S VEC TM MM
16 * S: Super Mode
17 * VEC: Exception Number
18 * TM: Trace Mode
19 * MM: Memory unaligned addr access
21 #define DEFAULT_PSR_VALUE 0x80000200
23 #define SYSTRACE_SAVENUM 5
25 #define TRAP0_SIZE 4
27 #endif /* __ASM_CSKY_REGDEF_H */