wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 1 | /* |
Shinya Kuribayashi | c824af8 | 2008-03-25 11:43:17 +0900 | [diff] [blame] | 2 | * Various ISA level dependent constants. |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 3 | * Most of the following constants reflect the different layout |
| 4 | * of Coprocessor 0 registers. |
| 5 | * |
| 6 | * Copyright (c) 1998 Harald Koerfgen |
Daniel Schwierzeck | a6dae71 | 2016-01-12 21:48:26 +0100 | [diff] [blame] | 7 | * |
| 8 | * SPDX-License-Identifier: GPL-2.0 |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 9 | */ |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 10 | |
| 11 | #ifndef __ASM_ISADEP_H |
| 12 | #define __ASM_ISADEP_H |
| 13 | |
Shinya Kuribayashi | c824af8 | 2008-03-25 11:43:17 +0900 | [diff] [blame] | 14 | #if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_TX39XX) |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 15 | /* |
| 16 | * R2000 or R3000 |
| 17 | */ |
| 18 | |
| 19 | /* |
| 20 | * kernel or user mode? (CP0_STATUS) |
| 21 | */ |
| 22 | #define KU_MASK 0x08 |
Daniel Schwierzeck | a6dae71 | 2016-01-12 21:48:26 +0100 | [diff] [blame] | 23 | #define KU_USER 0x08 |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 24 | #define KU_KERN 0x00 |
| 25 | |
| 26 | #else |
| 27 | /* |
| 28 | * kernel or user mode? |
| 29 | */ |
| 30 | #define KU_MASK 0x18 |
Daniel Schwierzeck | a6dae71 | 2016-01-12 21:48:26 +0100 | [diff] [blame] | 31 | #define KU_USER 0x10 |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 32 | #define KU_KERN 0x00 |
| 33 | |
| 34 | #endif |
| 35 | |
| 36 | #endif /* __ASM_ISADEP_H */ |