Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Various ISA level dependent constants.
0004  * Most of the following constants reflect the different layout
0005  * of Coprocessor 0 registers.
0006  *
0007  * Copyright (c) 1998 Harald Koerfgen
0008  */
0009 
0010 #ifndef __ASM_ISADEP_H
0011 #define __ASM_ISADEP_H
0012 
0013 #if defined(CONFIG_CPU_R3000)
0014 /*
0015  * R2000 or R3000
0016  */
0017 
0018 /*
0019  * kernel or user mode? (CP0_STATUS)
0020  */
0021 #define KU_MASK 0x08
0022 #define KU_USER 0x08
0023 #define KU_KERN 0x00
0024 
0025 #else
0026 /*
0027  * kernel or user mode?
0028  */
0029 #define KU_MASK 0x18
0030 #define KU_USER 0x10
0031 #define KU_KERN 0x00
0032 
0033 #endif
0034 
0035 #endif /* __ASM_ISADEP_H */