blob: aeb8b02b6a833fcbef1ead88278f29a1cf65e804 [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)
Elliott Hughesabd62612013-11-08 11:45:48 -080031#define DR_STEP (0x4000)
32#define DR_SWITCH (0x8000)
33#define DR_CONTROL_SHIFT 16
34#define DR_CONTROL_SIZE 4
Elliott Hughesabd62612013-11-08 11:45:48 -080035#define DR_RW_EXECUTE (0x0)
36#define DR_RW_WRITE (0x1)
37#define DR_RW_READ (0x3)
38#define DR_LEN_1 (0x0)
Elliott Hughesabd62612013-11-08 11:45:48 -080039#define DR_LEN_2 (0x4)
40#define DR_LEN_4 (0xC)
41#define DR_LEN_8 (0x8)
42#define DR_LOCAL_ENABLE_SHIFT 0
Elliott Hughesabd62612013-11-08 11:45:48 -080043#define DR_GLOBAL_ENABLE_SHIFT 1
44#define DR_LOCAL_ENABLE (0x1)
45#define DR_GLOBAL_ENABLE (0x2)
46#define DR_ENABLE_SIZE 2
Elliott Hughesabd62612013-11-08 11:45:48 -080047#define DR_LOCAL_ENABLE_MASK (0x55)
48#define DR_GLOBAL_ENABLE_MASK (0xAA)
49#ifdef __i386__
50#define DR_CONTROL_RESERVED (0xFC00)
Elliott Hughesabd62612013-11-08 11:45:48 -080051#else
52#define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL)
53#endif
54#define DR_LOCAL_SLOWDOWN (0x100)
Elliott Hughesabd62612013-11-08 11:45:48 -080055#define DR_GLOBAL_SLOWDOWN (0x200)
56#endif