Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
psw.h File Reference

Go to the source code of this file.

Data Structures

struct  pa_psw
 

Macros

#define PSW_I   0x00000001
 
#define PSW_D   0x00000002
 
#define PSW_P   0x00000004
 
#define PSW_Q   0x00000008
 
#define PSW_R   0x00000010
 
#define PSW_F   0x00000020
 
#define PSW_G   0x00000040 /* PA1.x only */
 
#define PSW_O   0x00000080 /* PA2.0 only */
 
#define PSW_SM_I   PSW_I /* Enable External Interrupts */
 
#define PSW_SM_D   PSW_D
 
#define PSW_SM_P   PSW_P
 
#define PSW_SM_Q   PSW_Q /* Enable Interrupt State Collection */
 
#define PSW_SM_R   PSW_R /* Enable Recover Counter Trap */
 
#define PSW_SM_W   0x200 /* PA2.0 only : Enable Wide Mode */
 
#define PSW_SM_QUIET   PSW_SM_R+PSW_SM_Q+PSW_SM_P+PSW_SM_D+PSW_SM_I
 
#define PSW_CB   0x0000ff00
 
#define PSW_M   0x00010000
 
#define PSW_V   0x00020000
 
#define PSW_C   0x00040000
 
#define PSW_B   0x00080000
 
#define PSW_X   0x00100000
 
#define PSW_N   0x00200000
 
#define PSW_L   0x00400000
 
#define PSW_H   0x00800000
 
#define PSW_T   0x01000000
 
#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 */
 
#define WIDE_PSW   0
 
#define KERNEL_PSW   (WIDE_PSW | PSW_C | PSW_Q | PSW_P | PSW_D)
 
#define REAL_MODE_PSW   (WIDE_PSW | PSW_Q)
 
#define USER_PSW_MASK   (WIDE_PSW | PSW_T | PSW_N | PSW_X | PSW_B | PSW_V | PSW_CB)
 
#define USER_PSW   (PSW_C | PSW_Q | PSW_P | PSW_D | PSW_I)
 
#define pa_psw(task)   ((struct pa_psw *) ((char *) (task) + TASK_PT_PSW))
 

Macro Definition Documentation

#define KERNEL_PSW   (WIDE_PSW | PSW_C | PSW_Q | PSW_P | PSW_D)

Definition at line 57 of file psw.h.

#define pa_psw (   task)    ((struct pa_psw *) ((char *) (task) + TASK_PT_PSW))

Definition at line 98 of file psw.h.

#define PSW_B   0x00080000

Definition at line 29 of file psw.h.

#define PSW_C   0x00040000

Definition at line 28 of file psw.h.

#define PSW_CB   0x0000ff00

Definition at line 24 of file psw.h.

#define PSW_D   0x00000002

Definition at line 5 of file psw.h.

#define PSW_E   0x04000000

Definition at line 38 of file psw.h.

#define PSW_F   0x00000020

Definition at line 10 of file psw.h.

#define PSW_G   0x00000040 /* PA1.x only */

Definition at line 11 of file psw.h.

#define PSW_H   0x00800000

Definition at line 34 of file psw.h.

#define PSW_I   0x00000001

Definition at line 4 of file psw.h.

#define PSW_L   0x00400000

Definition at line 33 of file psw.h.

#define PSW_M   0x00010000

Definition at line 26 of file psw.h.

#define PSW_N   0x00200000

Definition at line 32 of file psw.h.

#define PSW_O   0x00000080 /* PA2.0 only */

Definition at line 12 of file psw.h.

#define PSW_P   0x00000004

Definition at line 6 of file psw.h.

#define PSW_Q   0x00000008

Definition at line 7 of file psw.h.

#define PSW_R   0x00000010

Definition at line 9 of file psw.h.

#define PSW_S   0x02000000

Definition at line 37 of file psw.h.

#define PSW_SM_D   PSW_D

Definition at line 16 of file psw.h.

#define PSW_SM_I   PSW_I /* Enable External Interrupts */

Definition at line 15 of file psw.h.

#define PSW_SM_P   PSW_P

Definition at line 17 of file psw.h.

#define PSW_SM_Q   PSW_Q /* Enable Interrupt State Collection */

Definition at line 18 of file psw.h.

#define PSW_SM_QUIET   PSW_SM_R+PSW_SM_Q+PSW_SM_P+PSW_SM_D+PSW_SM_I

Definition at line 22 of file psw.h.

#define PSW_SM_R   PSW_R /* Enable Recover Counter Trap */

Definition at line 19 of file psw.h.

#define PSW_SM_W   0x200 /* PA2.0 only : Enable Wide Mode */

Definition at line 20 of file psw.h.

#define PSW_T   0x01000000

Definition at line 36 of file psw.h.

#define PSW_V   0x00020000

Definition at line 27 of file psw.h.

#define PSW_W   0x08000000 /* PA2.0 only */

Definition at line 39 of file psw.h.

#define PSW_W_BIT   36 /* PA2.0 only */

Definition at line 40 of file psw.h.

#define PSW_X   0x00100000

Definition at line 31 of file psw.h.

#define PSW_Y   0x80000000 /* PA1.x only */

Definition at line 43 of file psw.h.

#define PSW_Z   0x40000000 /* PA1.x only */

Definition at line 42 of file psw.h.

#define REAL_MODE_PSW   (WIDE_PSW | PSW_Q)

Definition at line 58 of file psw.h.

#define USER_PSW   (PSW_C | PSW_Q | PSW_P | PSW_D | PSW_I)

Definition at line 60 of file psw.h.

#define USER_PSW_MASK   (WIDE_PSW | PSW_T | PSW_N | PSW_X | PSW_B | PSW_V | PSW_CB)

Definition at line 59 of file psw.h.

#define WIDE_PSW   0

Definition at line 53 of file psw.h.