File Index
Files and directories
Sign in
FILE

regdef.h

File preview with syntax highlighting.

linux-6.19.14/arch/csky/abiv2/inc/abi/regdef.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2
 3#ifndef __ASM_CSKY_REGDEF_H
 4#define __ASM_CSKY_REGDEF_H
 5
 6#ifdef __ASSEMBLER__
 7#define syscallid	r7
 8#else
 9#define syscallid	"r7"
10#endif
11
12#define regs_syscallid(regs) regs->regs[3]
13#define regs_fp(regs) regs->regs[4]
14
15/*
16 * PSR format:
17 * | 31 | 30-24 | 23-16 | 15 14 | 13-10 | 9 | 8-0 |
18 *   S              VEC     TM            MM
19 *
20 *   S: Super Mode
21 * VEC: Exception Number
22 *  TM: Trace Mode
23 *  MM: Memory unaligned addr access
24 */
25#define DEFAULT_PSR_VALUE	0x80000200
26
27#define SYSTRACE_SAVENUM	5
28
29#define TRAP0_SIZE		4
30
31#endif /* __ASM_CSKY_REGDEF_H */
~/ Read-only file preview.