1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ASM_CSKY_ENTRY_H
5 #define __ASM_CSKY_ENTRY_H
8 #include <abi/regdef.h>
31 .macro SAVE_ALL epc_inc
120 .macro SAVE_SWITCH_STACK
125 .macro RESTORE_SWITCH_STACK
130 /* MMU registers operators. */
156 /* Init psr and enable ee */
157 lrw r6
, DEFAULT_PSR_VALUE
161 /* Select MMU as co-processor */
166 * 31 - 29 | 28 - 4 | 3 | 2 | 1 | 0
179 .macro ANDI_R3 rx
, imm
181 andi
\rx
, (\imm
>> 3)
183 #endif /* __ASM_CSKY_ENTRY_H */