patch-2.4.20 linux-2.4.20/include/asm-parisc/psw.h
Next file: linux-2.4.20/include/asm-parisc/ptrace.h
Previous file: linux-2.4.20/include/asm-parisc/processor.h
Back to the patch index
Back to the overall index
- Lines: 50
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/asm-parisc/psw.h
- Orig date:
Tue Dec 5 12:29:39 2000
diff -urN linux-2.4.19/include/asm-parisc/psw.h linux-2.4.20/include/asm-parisc/psw.h
@@ -9,6 +9,8 @@
#define PSW_G 0x00000040 /* PA1.x only */
#define PSW_O 0x00000080 /* PA2.0 only */
+#define PSW_CB 0x0000ff00
+
#define PSW_M 0x00010000
#define PSW_V 0x00020000
#define PSW_C 0x00040000
@@ -23,10 +25,15 @@
#define PSW_S 0x02000000
#define PSW_E 0x04000000
#define PSW_W 0x08000000 /* PA2.0 only */
+#define PSW_W_BIT 36 /* PA2.0 only */
#define PSW_Z 0x40000000 /* PA1.x only */
#define PSW_Y 0x80000000 /* PA1.x only */
+#ifdef __LP64__
+#define PSW_HI_CB 0x000000ff /* PA2.0 only */
+#endif
+
/* PSW bits to be used with ssm/rsm */
#define PSW_SM_I 0x1
#define PSW_SM_D 0x2
@@ -40,15 +47,16 @@
#define PSW_SM_W 0x200
#ifdef __LP64__
-# define USER_PSW (PSW_C | PSW_D | PSW_Q | PSW_I)
-# define USER_INIT_PSW (PSW_C | PSW_D | PSW_Q | PSW_I | PSW_N)
-# define KERNEL_PSW (PSW_C | PSW_D | PSW_Q | PSW_W)
-# define PDC_PSW (PSW_Q | PSW_W)
+# define USER_PSW (PSW_C | PSW_Q | PSW_P | PSW_D | PSW_I)
+# define KERNEL_PSW (PSW_W | PSW_C | PSW_Q | PSW_P | PSW_D)
+# define REAL_MODE_PSW (PSW_W | PSW_Q)
+# define USER_PSW_MASK (PSW_W | PSW_T | PSW_N | PSW_X | PSW_B | PSW_V | PSW_CB)
+# define USER_PSW_HI_MASK (PSW_HI_CB)
#else
-# define USER_PSW (PSW_C | PSW_D | PSW_Q | PSW_I | PSW_P)
-# define USER_INIT_PSW (PSW_C | PSW_D | PSW_Q | PSW_I | PSW_N)
-# define KERNEL_PSW (PSW_C | PSW_D | PSW_Q)
-# define PDC_PSW (PSW_Q)
+# define USER_PSW (PSW_C | PSW_Q | PSW_P | PSW_D | PSW_I)
+# define KERNEL_PSW (PSW_C | PSW_Q | PSW_P | PSW_D)
+# define REAL_MODE_PSW (PSW_Q)
+# define USER_PSW_MASK (PSW_T | PSW_N | PSW_X | PSW_B | PSW_V | PSW_CB)
#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)