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  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef __ASM_I386_PROCESSOR_FLAGS_H
     13 #define __ASM_I386_PROCESSOR_FLAGS_H
     14 
     15 #define X86_EFLAGS_CF 0x00000001
     16 #define X86_EFLAGS_PF 0x00000004
     17 #define X86_EFLAGS_AF 0x00000010
     18 #define X86_EFLAGS_ZF 0x00000040
     19 #define X86_EFLAGS_SF 0x00000080
     20 #define X86_EFLAGS_TF 0x00000100
     21 #define X86_EFLAGS_IF 0x00000200
     22 #define X86_EFLAGS_DF 0x00000400
     23 #define X86_EFLAGS_OF 0x00000800
     24 #define X86_EFLAGS_IOPL 0x00003000
     25 #define X86_EFLAGS_NT 0x00004000
     26 #define X86_EFLAGS_RF 0x00010000
     27 #define X86_EFLAGS_VM 0x00020000
     28 #define X86_EFLAGS_AC 0x00040000
     29 #define X86_EFLAGS_VIF 0x00080000
     30 #define X86_EFLAGS_VIP 0x00100000
     31 #define X86_EFLAGS_ID 0x00200000
     32 
     33 #define X86_CR0_PE 0x00000001
     34 #define X86_CR0_MP 0x00000002
     35 #define X86_CR0_EM 0x00000004
     36 #define X86_CR0_TS 0x00000008
     37 #define X86_CR0_ET 0x00000010
     38 #define X86_CR0_NE 0x00000020
     39 #define X86_CR0_WP 0x00010000
     40 #define X86_CR0_AM 0x00040000
     41 #define X86_CR0_NW 0x20000000
     42 #define X86_CR0_CD 0x40000000
     43 #define X86_CR0_PG 0x80000000
     44 
     45 #define X86_CR3_PWT 0x00000008
     46 #define X86_CR3_PCD 0x00000010
     47 
     48 #define X86_CR4_VME 0x00000001
     49 #define X86_CR4_PVI 0x00000002
     50 #define X86_CR4_TSD 0x00000004
     51 #define X86_CR4_DE 0x00000008
     52 #define X86_CR4_PSE 0x00000010
     53 #define X86_CR4_PAE 0x00000020
     54 #define X86_CR4_MCE 0x00000040
     55 #define X86_CR4_PGE 0x00000080
     56 #define X86_CR4_PCE 0x00000100
     57 #define X86_CR4_OSFXSR 0x00000200
     58 #define X86_CR4_OSXMMEXCPT 0x00000400
     59 #define X86_CR4_VMXE 0x00002000
     60 
     61 #define X86_CR8_TPR 0x0000000F
     62 
     63 #define CX86_PCR0 0x20
     64 #define CX86_GCR 0xb8
     65 #define CX86_CCR0 0xc0
     66 #define CX86_CCR1 0xc1
     67 #define CX86_CCR2 0xc2
     68 #define CX86_CCR3 0xc3
     69 #define CX86_CCR4 0xe8
     70 #define CX86_CCR5 0xe9
     71 #define CX86_CCR6 0xea
     72 #define CX86_CCR7 0xeb
     73 #define CX86_PCR1 0xf0
     74 #define CX86_DIR0 0xfe
     75 #define CX86_DIR1 0xff
     76 #define CX86_ARR_BASE 0xc4
     77 #define CX86_RCR_BASE 0xdc
     78 
     79 #endif
     80