| #define PSW_G 0x00000040 /* PA1.x only */ |
| #define PSW_O 0x00000080 /* PA2.0 only */ |
| #define PSW_CB 0x0000ff00 |
| #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 */ |
| #define PSW_HI_CB 0x000000ff /* PA2.0 only */ |
| /* PSW bits to be used with ssm/rsm */ |
| # 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) |
| # 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) |