Home | History | Annotate | Download | only in asm
      1 /****************************************************************************
      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 #define DR_STATUS 6
     24 #define DR_CONTROL 7
     25 #define DR6_RESERVED (0xFFFF0FF0)
     26 #define DR_TRAP0 (0x1)
     27 #define DR_TRAP1 (0x2)
     28 #define DR_TRAP2 (0x4)
     29 #define DR_TRAP3 (0x8)
     30 #define DR_TRAP_BITS (DR_TRAP0 | DR_TRAP1 | DR_TRAP2 | DR_TRAP3)
     31 #define DR_STEP (0x4000)
     32 #define DR_SWITCH (0x8000)
     33 #define DR_CONTROL_SHIFT 16
     34 #define DR_CONTROL_SIZE 4
     35 #define DR_RW_EXECUTE (0x0)
     36 #define DR_RW_WRITE (0x1)
     37 #define DR_RW_READ (0x3)
     38 #define DR_LEN_1 (0x0)
     39 #define DR_LEN_2 (0x4)
     40 #define DR_LEN_4 (0xC)
     41 #define DR_LEN_8 (0x8)
     42 #define DR_LOCAL_ENABLE_SHIFT 0
     43 #define DR_GLOBAL_ENABLE_SHIFT 1
     44 #define DR_LOCAL_ENABLE (0x1)
     45 #define DR_GLOBAL_ENABLE (0x2)
     46 #define DR_ENABLE_SIZE 2
     47 #define DR_LOCAL_ENABLE_MASK (0x55)
     48 #define DR_GLOBAL_ENABLE_MASK (0xAA)
     49 #ifdef __i386__
     50 #define DR_CONTROL_RESERVED (0xFC00)
     51 #else
     52 #define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL)
     53 #endif
     54 #define DR_LOCAL_SLOWDOWN (0x100)
     55 #define DR_GLOBAL_SLOWDOWN (0x200)
     56 #endif
     57