1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_ASM_X86_DEBUGREG_H 8 #define _UAPI_ASM_X86_DEBUGREG_H 9 #define DR_FIRSTADDR 0 10 #define DR_LASTADDR 3 11 #define DR_STATUS 6 12 #define DR_CONTROL 7 13 #define DR6_RESERVED (0xFFFF0FF0) 14 #define DR_TRAP0 (0x1) 15 #define DR_TRAP1 (0x2) 16 #define DR_TRAP2 (0x4) 17 #define DR_TRAP3 (0x8) 18 #define DR_TRAP_BITS (DR_TRAP0 | DR_TRAP1 | DR_TRAP2 | DR_TRAP3) 19 #define DR_BUS_LOCK (0x800) 20 #define DR_STEP (0x4000) 21 #define DR_SWITCH (0x8000) 22 #define DR_CONTROL_SHIFT 16 23 #define DR_CONTROL_SIZE 4 24 #define DR_RW_EXECUTE (0x0) 25 #define DR_RW_WRITE (0x1) 26 #define DR_RW_READ (0x3) 27 #define DR_LEN_1 (0x0) 28 #define DR_LEN_2 (0x4) 29 #define DR_LEN_4 (0xC) 30 #define DR_LEN_8 (0x8) 31 #define DR_LOCAL_ENABLE_SHIFT 0 32 #define DR_GLOBAL_ENABLE_SHIFT 1 33 #define DR_LOCAL_ENABLE (0x1) 34 #define DR_GLOBAL_ENABLE (0x2) 35 #define DR_ENABLE_SIZE 2 36 #define DR_LOCAL_ENABLE_MASK (0x55) 37 #define DR_GLOBAL_ENABLE_MASK (0xAA) 38 #ifdef __i386__ 39 #define DR_CONTROL_RESERVED (0xFC00) 40 #else 41 #define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL) 42 #endif 43 #define DR_LOCAL_SLOWDOWN (0x100) 44 #define DR_GLOBAL_SLOWDOWN (0x200) 45 #endif 46