xref: /openbmc/u-boot/arch/mips/include/asm/isadep.h (revision 00caae6d)
1 /*
2  * Various ISA level dependent constants.
3  * Most of the following constants reflect the different layout
4  * of Coprocessor 0 registers.
5  *
6  * Copyright (c) 1998 Harald Koerfgen
7  *
8  * SPDX-License-Identifier:	GPL-2.0
9  */
10 
11 #ifndef __ASM_ISADEP_H
12 #define __ASM_ISADEP_H
13 
14 #if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_TX39XX)
15 /*
16  * R2000 or R3000
17  */
18 
19 /*
20  * kernel or user mode? (CP0_STATUS)
21  */
22 #define KU_MASK 0x08
23 #define KU_USER 0x08
24 #define KU_KERN 0x00
25 
26 #else
27 /*
28  * kernel or user mode?
29  */
30 #define KU_MASK 0x18
31 #define KU_USER 0x10
32 #define KU_KERN 0x00
33 
34 #endif
35 
36 #endif /* __ASM_ISADEP_H */
37