blob: 3d79ebcf593c452953bf975ebe72093014acc750 [file] [log] [blame]
wdenk6069ff22003-02-28 00:49:47 +00001/*
Shinya Kuribayashi282223a2008-03-25 11:43:17 +09002 * Various ISA level dependent constants.
wdenk6069ff22003-02-28 00:49:47 +00003 * Most of the following constants reflect the different layout
4 * of Coprocessor 0 registers.
5 *
6 * Copyright (c) 1998 Harald Koerfgen
Daniel Schwierzecka3ab2ae2016-01-12 21:48:26 +01007 *
8 * SPDX-License-Identifier: GPL-2.0
wdenk6069ff22003-02-28 00:49:47 +00009 */
wdenk6069ff22003-02-28 00:49:47 +000010
11#ifndef __ASM_ISADEP_H
12#define __ASM_ISADEP_H
13
Shinya Kuribayashi282223a2008-03-25 11:43:17 +090014#if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_TX39XX)
wdenk6069ff22003-02-28 00:49:47 +000015/*
16 * R2000 or R3000
17 */
18
19/*
20 * kernel or user mode? (CP0_STATUS)
21 */
22#define KU_MASK 0x08
Daniel Schwierzecka3ab2ae2016-01-12 21:48:26 +010023#define KU_USER 0x08
wdenk6069ff22003-02-28 00:49:47 +000024#define KU_KERN 0x00
25
26#else
27/*
28 * kernel or user mode?
29 */
30#define KU_MASK 0x18
Daniel Schwierzecka3ab2ae2016-01-12 21:48:26 +010031#define KU_USER 0x10
wdenk6069ff22003-02-28 00:49:47 +000032#define KU_KERN 0x00
33
34#endif
35
36#endif /* __ASM_ISADEP_H */