18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef __ASM_CSKY_REGDEF_H 58c2ecf20Sopenharmony_ci#define __ASM_CSKY_REGDEF_H 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#define syscallid r1 88c2ecf20Sopenharmony_ci#define regs_syscallid(regs) regs->regs[9] 98c2ecf20Sopenharmony_ci#define regs_fp(regs) regs->regs[2] 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* 128c2ecf20Sopenharmony_ci * PSR format: 138c2ecf20Sopenharmony_ci * | 31 | 30-24 | 23-16 | 15 14 | 13-0 | 148c2ecf20Sopenharmony_ci * S CPID VEC TM 158c2ecf20Sopenharmony_ci * 168c2ecf20Sopenharmony_ci * S: Super Mode 178c2ecf20Sopenharmony_ci * CPID: Coprocessor id, only 15 for MMU 188c2ecf20Sopenharmony_ci * VEC: Exception Number 198c2ecf20Sopenharmony_ci * TM: Trace Mode 208c2ecf20Sopenharmony_ci */ 218c2ecf20Sopenharmony_ci#define DEFAULT_PSR_VALUE 0x8f000000 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#define SYSTRACE_SAVENUM 2 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#define TRAP0_SIZE 2 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#endif /* __ASM_CSKY_REGDEF_H */ 28