Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 7 | #ifndef _UAPI_ASM_X86_DEBUGREG_H |
| 8 | #define _UAPI_ASM_X86_DEBUGREG_H |
| 9 | #define DR_FIRSTADDR 0 |
| 10 | #define DR_LASTADDR 3 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 11 | #define DR_STATUS 6 |
| 12 | #define DR_CONTROL 7 |
| 13 | #define DR6_RESERVED (0xFFFF0FF0) |
| 14 | #define DR_TRAP0 (0x1) |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 15 | #define DR_TRAP1 (0x2) |
| 16 | #define DR_TRAP2 (0x4) |
| 17 | #define DR_TRAP3 (0x8) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 18 | #define DR_TRAP_BITS (DR_TRAP0 | DR_TRAP1 | DR_TRAP2 | DR_TRAP3) |
Christopher Ferris | fcc3b4f | 2021-07-01 01:30:21 +0000 | [diff] [blame] | 19 | #define DR_BUS_LOCK (0x800) |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 20 | #define DR_STEP (0x4000) |
| 21 | #define DR_SWITCH (0x8000) |
| 22 | #define DR_CONTROL_SHIFT 16 |
| 23 | #define DR_CONTROL_SIZE 4 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 24 | #define DR_RW_EXECUTE (0x0) |
| 25 | #define DR_RW_WRITE (0x1) |
| 26 | #define DR_RW_READ (0x3) |
| 27 | #define DR_LEN_1 (0x0) |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 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 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 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 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 36 | #define DR_LOCAL_ENABLE_MASK (0x55) |
| 37 | #define DR_GLOBAL_ENABLE_MASK (0xAA) |
| 38 | #ifdef __i386__ |
| 39 | #define DR_CONTROL_RESERVED (0xFC00) |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 40 | #else |
| 41 | #define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL) |
| 42 | #endif |
| 43 | #define DR_LOCAL_SLOWDOWN (0x100) |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 44 | #define DR_GLOBAL_SLOWDOWN (0x200) |
| 45 | #endif |