drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / csky / abiv2 / inc / abi / regdef.h
blob0933addbc27b75e7b3d9d19f43325c93e70ccca0
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __ASM_CSKY_REGDEF_H
4 #define __ASM_CSKY_REGDEF_H
6 #ifdef __ASSEMBLY__
7 #define syscallid r7
8 #else
9 #define syscallid "r7"
10 #endif
12 #define regs_syscallid(regs) regs->regs[3]
13 #define regs_fp(regs) regs->regs[4]
16 * PSR format:
17 * | 31 | 30-24 | 23-16 | 15 14 | 13-10 | 9 | 8-0 |
18 * S VEC TM MM
20 * S: Super Mode
21 * VEC: Exception Number
22 * TM: Trace Mode
23 * MM: Memory unaligned addr access
25 #define DEFAULT_PSR_VALUE 0x80000200
27 #define SYSTRACE_SAVENUM 5
29 #define TRAP0_SIZE 4
31 #endif /* __ASM_CSKY_REGDEF_H */