aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-parisc/psw.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-parisc/psw.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-parisc/psw.h')
-rw-r--r--include/asm-parisc/psw.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/include/asm-parisc/psw.h b/include/asm-parisc/psw.h
new file mode 100644
index 000000000000..51323029f377
--- /dev/null
+++ b/include/asm-parisc/psw.h
@@ -0,0 +1,62 @@
1#ifndef _PARISC_PSW_H
2#define PSW_I 0x00000001
3#define PSW_D 0x00000002
4#define PSW_P 0x00000004
5#define PSW_Q 0x00000008
6
7#define PSW_R 0x00000010
8#define PSW_F 0x00000020
9#define PSW_G 0x00000040 /* PA1.x only */
10#define PSW_O 0x00000080 /* PA2.0 only */
11
12#define PSW_CB 0x0000ff00
13
14#define PSW_M 0x00010000
15#define PSW_V 0x00020000
16#define PSW_C 0x00040000
17#define PSW_B 0x00080000
18
19#define PSW_X 0x00100000
20#define PSW_N 0x00200000
21#define PSW_L 0x00400000
22#define PSW_H 0x00800000
23
24#define PSW_T 0x01000000
25#define PSW_S 0x02000000
26#define PSW_E 0x04000000
27#define PSW_W 0x08000000 /* PA2.0 only */
28#define PSW_W_BIT 36 /* PA2.0 only */
29
30#define PSW_Z 0x40000000 /* PA1.x only */
31#define PSW_Y 0x80000000 /* PA1.x only */
32
33#ifdef __LP64__
34#define PSW_HI_CB 0x000000ff /* PA2.0 only */
35#endif
36
37/* PSW bits to be used with ssm/rsm */
38#define PSW_SM_I 0x1
39#define PSW_SM_D 0x2
40#define PSW_SM_P 0x4
41#define PSW_SM_Q 0x8
42#define PSW_SM_R 0x10
43#define PSW_SM_F 0x20
44#define PSW_SM_G 0x40
45#define PSW_SM_O 0x80
46#define PSW_SM_E 0x100
47#define PSW_SM_W 0x200
48
49#ifdef __LP64__
50# define USER_PSW (PSW_C | PSW_Q | PSW_P | PSW_D | PSW_I)
51# define KERNEL_PSW (PSW_W | PSW_C | PSW_Q | PSW_P | PSW_D)
52# define REAL_MODE_PSW (PSW_W | PSW_Q)
53# define USER_PSW_MASK (PSW_W | PSW_T | PSW_N | PSW_X | PSW_B | PSW_V | PSW_CB)
54# define USER_PSW_HI_MASK (PSW_HI_CB)
55#else
56# define USER_PSW (PSW_C | PSW_Q | PSW_P | PSW_D | PSW_I)
57# define KERNEL_PSW (PSW_C | PSW_Q | PSW_P | PSW_D)
58# define REAL_MODE_PSW (PSW_Q)
59# define USER_PSW_MASK (PSW_T | PSW_N | PSW_X | PSW_B | PSW_V | PSW_CB)
60#endif
61
62#endif