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

Go to the source code of this file.

Macros

#define DR_FIRSTADDR   0 /* u_debugreg[DR_FIRSTADDR] */
 
#define DR_LASTADDR   3 /* u_debugreg[DR_LASTADDR] */
 
#define DR_STATUS   6 /* u_debugreg[DR_STATUS] */
 
#define DR_CONTROL   7 /* u_debugreg[DR_CONTROL] */
 
#define DR6_RESERVED   (0xFFFF0FF0)
 
#define DR_TRAP0   (0x1) /* db0 */
 
#define DR_TRAP1   (0x2) /* db1 */
 
#define DR_TRAP2   (0x4) /* db2 */
 
#define DR_TRAP3   (0x8) /* db3 */
 
#define DR_TRAP_BITS   (DR_TRAP0|DR_TRAP1|DR_TRAP2|DR_TRAP3)
 
#define DR_STEP   (0x4000) /* single-step */
 
#define DR_SWITCH   (0x8000) /* task switch */
 
#define DR_CONTROL_SHIFT   16 /* Skip this many bits in ctl register */
 
#define DR_CONTROL_SIZE   4 /* 4 control bits per register */
 
#define DR_RW_EXECUTE   (0x0) /* Settings for the access types to trap on */
 
#define DR_RW_WRITE   (0x1)
 
#define DR_RW_READ   (0x3)
 
#define DR_LEN_1   (0x0) /* Settings for data length to trap on */
 
#define DR_LEN_2   (0x4)
 
#define DR_LEN_4   (0xC)
 
#define DR_LEN_8   (0x8)
 
#define DR_LOCAL_ENABLE_SHIFT   0 /* Extra shift to the local enable bit */
 
#define DR_GLOBAL_ENABLE_SHIFT   1 /* Extra shift to the global enable bit */
 
#define DR_LOCAL_ENABLE   (0x1) /* Local enable for reg 0 */
 
#define DR_GLOBAL_ENABLE   (0x2) /* Global enable for reg 0 */
 
#define DR_ENABLE_SIZE   2 /* 2 enable bits per register */
 
#define DR_LOCAL_ENABLE_MASK   (0x55) /* Set local bits for all 4 regs */
 
#define DR_GLOBAL_ENABLE_MASK   (0xAA) /* Set global bits for all 4 regs */
 
#define DR_CONTROL_RESERVED   (0xFFFFFFFF0000FC00UL) /* Reserved */
 
#define DR_LOCAL_SLOWDOWN   (0x100) /* Local slow the pipeline */
 
#define DR_GLOBAL_SLOWDOWN   (0x200) /* Global slow the pipeline */
 

Macro Definition Documentation

#define DR6_RESERVED   (0xFFFF0FF0)

Definition at line 18 of file debugreg.h.

#define DR_CONTROL   7 /* u_debugreg[DR_CONTROL] */

Definition at line 11 of file debugreg.h.

#define DR_CONTROL_RESERVED   (0xFFFFFFFF0000FC00UL) /* Reserved */

Definition at line 70 of file debugreg.h.

#define DR_CONTROL_SHIFT   16 /* Skip this many bits in ctl register */

Definition at line 35 of file debugreg.h.

#define DR_CONTROL_SIZE   4 /* 4 control bits per register */

Definition at line 36 of file debugreg.h.

#define DR_ENABLE_SIZE   2 /* 2 enable bits per register */

Definition at line 58 of file debugreg.h.

#define DR_FIRSTADDR   0 /* u_debugreg[DR_FIRSTADDR] */

Definition at line 7 of file debugreg.h.

#define DR_GLOBAL_ENABLE   (0x2) /* Global enable for reg 0 */

Definition at line 57 of file debugreg.h.

#define DR_GLOBAL_ENABLE_MASK   (0xAA) /* Set global bits for all 4 regs */

Definition at line 61 of file debugreg.h.

#define DR_GLOBAL_ENABLE_SHIFT   1 /* Extra shift to the global enable bit */

Definition at line 55 of file debugreg.h.

#define DR_GLOBAL_SLOWDOWN   (0x200) /* Global slow the pipeline */

Definition at line 74 of file debugreg.h.

#define DR_LASTADDR   3 /* u_debugreg[DR_LASTADDR] */

Definition at line 8 of file debugreg.h.

#define DR_LEN_1   (0x0) /* Settings for data length to trap on */

Definition at line 42 of file debugreg.h.

#define DR_LEN_2   (0x4)

Definition at line 43 of file debugreg.h.

#define DR_LEN_4   (0xC)

Definition at line 44 of file debugreg.h.

#define DR_LEN_8   (0x8)

Definition at line 45 of file debugreg.h.

#define DR_LOCAL_ENABLE   (0x1) /* Local enable for reg 0 */

Definition at line 56 of file debugreg.h.

#define DR_LOCAL_ENABLE_MASK   (0x55) /* Set local bits for all 4 regs */

Definition at line 60 of file debugreg.h.

#define DR_LOCAL_ENABLE_SHIFT   0 /* Extra shift to the local enable bit */

Definition at line 54 of file debugreg.h.

#define DR_LOCAL_SLOWDOWN   (0x100) /* Local slow the pipeline */

Definition at line 73 of file debugreg.h.

#define DR_RW_EXECUTE   (0x0) /* Settings for the access types to trap on */

Definition at line 38 of file debugreg.h.

#define DR_RW_READ   (0x3)

Definition at line 40 of file debugreg.h.

#define DR_RW_WRITE   (0x1)

Definition at line 39 of file debugreg.h.

#define DR_STATUS   6 /* u_debugreg[DR_STATUS] */

Definition at line 10 of file debugreg.h.

#define DR_STEP   (0x4000) /* single-step */

Definition at line 26 of file debugreg.h.

#define DR_SWITCH   (0x8000) /* task switch */

Definition at line 27 of file debugreg.h.

#define DR_TRAP0   (0x1) /* db0 */

Definition at line 20 of file debugreg.h.

#define DR_TRAP1   (0x2) /* db1 */

Definition at line 21 of file debugreg.h.

#define DR_TRAP2   (0x4) /* db2 */

Definition at line 22 of file debugreg.h.

#define DR_TRAP3   (0x8) /* db3 */

Definition at line 23 of file debugreg.h.

#define DR_TRAP_BITS   (DR_TRAP0|DR_TRAP1|DR_TRAP2|DR_TRAP3)

Definition at line 24 of file debugreg.h.