blob: c8b30a5f15036a139b923a942685ead5e999d4dc [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
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define DR_STATUS 6
25#define DR_CONTROL 7
26#define DR6_RESERVED (0xFFFF0FF0)
27#define DR_TRAP0 (0x1)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define DR_TRAP1 (0x2)
30#define DR_TRAP2 (0x4)
31#define DR_TRAP3 (0x8)
32#define DR_TRAP_BITS (DR_TRAP0|DR_TRAP1|DR_TRAP2|DR_TRAP3)
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define DR_STEP (0x4000)
35#define DR_SWITCH (0x8000)
36#define DR_CONTROL_SHIFT 16
37#define DR_CONTROL_SIZE 4
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define DR_RW_EXECUTE (0x0)
40#define DR_RW_WRITE (0x1)
41#define DR_RW_READ (0x3)
42#define DR_LEN_1 (0x0)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define DR_LEN_2 (0x4)
45#define DR_LEN_4 (0xC)
46#define DR_LEN_8 (0x8)
47#define DR_LOCAL_ENABLE_SHIFT 0
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define DR_GLOBAL_ENABLE_SHIFT 1
50#define DR_LOCAL_ENABLE (0x1)
51#define DR_GLOBAL_ENABLE (0x2)
52#define DR_ENABLE_SIZE 2
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define DR_LOCAL_ENABLE_MASK (0x55)
55#define DR_GLOBAL_ENABLE_MASK (0xAA)
56#ifdef __i386__
57#define DR_CONTROL_RESERVED (0xFC00)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#else
60#define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL)
61#endif
62#define DR_LOCAL_SLOWDOWN (0x100)
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define DR_GLOBAL_SLOWDOWN (0x200)
65#endif