blob: 360f432ba308aa47a2c2ad8c3b71df43c7af0eba [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_ASM_X86_DEBUGREG_H
20#define _UAPI_ASM_X86_DEBUGREG_H
21#define DR_FIRSTADDR 0
22#define DR_LASTADDR 3
Elliott Hughesabd62612013-11-08 11:45:48 -080023#define DR_STATUS 6
24#define DR_CONTROL 7
25#define DR6_RESERVED (0xFFFF0FF0)
26#define DR_TRAP0 (0x1)
Elliott Hughesabd62612013-11-08 11:45:48 -080027#define DR_TRAP1 (0x2)
28#define DR_TRAP2 (0x4)
29#define DR_TRAP3 (0x8)
Tao Baod7db5942015-01-28 10:07:51 -080030#define DR_TRAP_BITS (DR_TRAP0 | DR_TRAP1 | DR_TRAP2 | DR_TRAP3)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000031#define DR_BUS_LOCK (0x800)
Elliott Hughesabd62612013-11-08 11:45:48 -080032#define DR_STEP (0x4000)
33#define DR_SWITCH (0x8000)
34#define DR_CONTROL_SHIFT 16
35#define DR_CONTROL_SIZE 4
Elliott Hughesabd62612013-11-08 11:45:48 -080036#define DR_RW_EXECUTE (0x0)
37#define DR_RW_WRITE (0x1)
38#define DR_RW_READ (0x3)
39#define DR_LEN_1 (0x0)
Elliott Hughesabd62612013-11-08 11:45:48 -080040#define DR_LEN_2 (0x4)
41#define DR_LEN_4 (0xC)
42#define DR_LEN_8 (0x8)
43#define DR_LOCAL_ENABLE_SHIFT 0
Elliott Hughesabd62612013-11-08 11:45:48 -080044#define DR_GLOBAL_ENABLE_SHIFT 1
45#define DR_LOCAL_ENABLE (0x1)
46#define DR_GLOBAL_ENABLE (0x2)
47#define DR_ENABLE_SIZE 2
Elliott Hughesabd62612013-11-08 11:45:48 -080048#define DR_LOCAL_ENABLE_MASK (0x55)
49#define DR_GLOBAL_ENABLE_MASK (0xAA)
50#ifdef __i386__
51#define DR_CONTROL_RESERVED (0xFC00)
Elliott Hughesabd62612013-11-08 11:45:48 -080052#else
53#define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL)
54#endif
55#define DR_LOCAL_SLOWDOWN (0x100)
Elliott Hughesabd62612013-11-08 11:45:48 -080056#define DR_GLOBAL_SLOWDOWN (0x200)
57#endif