blob: 4d0a904eb8c2e2b508e02f4f5a21fa096db56368 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Hughesabd62612013-11-08 11:45:48 -08007#ifndef _UAPI_ASM_X86_DEBUGREG_H
8#define _UAPI_ASM_X86_DEBUGREG_H
9#define DR_FIRSTADDR 0
10#define DR_LASTADDR 3
Elliott Hughesabd62612013-11-08 11:45:48 -080011#define DR_STATUS 6
12#define DR_CONTROL 7
13#define DR6_RESERVED (0xFFFF0FF0)
14#define DR_TRAP0 (0x1)
Elliott Hughesabd62612013-11-08 11:45:48 -080015#define DR_TRAP1 (0x2)
16#define DR_TRAP2 (0x4)
17#define DR_TRAP3 (0x8)
Tao Baod7db5942015-01-28 10:07:51 -080018#define DR_TRAP_BITS (DR_TRAP0 | DR_TRAP1 | DR_TRAP2 | DR_TRAP3)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000019#define DR_BUS_LOCK (0x800)
Elliott Hughesabd62612013-11-08 11:45:48 -080020#define DR_STEP (0x4000)
21#define DR_SWITCH (0x8000)
22#define DR_CONTROL_SHIFT 16
23#define DR_CONTROL_SIZE 4
Elliott Hughesabd62612013-11-08 11:45:48 -080024#define DR_RW_EXECUTE (0x0)
25#define DR_RW_WRITE (0x1)
26#define DR_RW_READ (0x3)
27#define DR_LEN_1 (0x0)
Elliott Hughesabd62612013-11-08 11:45:48 -080028#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 Hughesabd62612013-11-08 11:45:48 -080032#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 Hughesabd62612013-11-08 11:45:48 -080036#define DR_LOCAL_ENABLE_MASK (0x55)
37#define DR_GLOBAL_ENABLE_MASK (0xAA)
38#ifdef __i386__
39#define DR_CONTROL_RESERVED (0xFC00)
Elliott Hughesabd62612013-11-08 11:45:48 -080040#else
41#define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL)
42#endif
43#define DR_LOCAL_SLOWDOWN (0x100)
Elliott Hughesabd62612013-11-08 11:45:48 -080044#define DR_GLOBAL_SLOWDOWN (0x200)
45#endif