Go to the documentation of this file. 1 #ifndef _ASM_X86_PROCESSOR_FLAGS_H
2 #define _ASM_X86_PROCESSOR_FLAGS_H
8 #define X86_EFLAGS_CF 0x00000001
9 #define X86_EFLAGS_BIT1 0x00000002
10 #define X86_EFLAGS_PF 0x00000004
11 #define X86_EFLAGS_AF 0x00000010
12 #define X86_EFLAGS_ZF 0x00000040
13 #define X86_EFLAGS_SF 0x00000080
14 #define X86_EFLAGS_TF 0x00000100
15 #define X86_EFLAGS_IF 0x00000200
16 #define X86_EFLAGS_DF 0x00000400
17 #define X86_EFLAGS_OF 0x00000800
18 #define X86_EFLAGS_IOPL 0x00003000
19 #define X86_EFLAGS_NT 0x00004000
20 #define X86_EFLAGS_RF 0x00010000
21 #define X86_EFLAGS_VM 0x00020000
22 #define X86_EFLAGS_AC 0x00040000
23 #define X86_EFLAGS_VIF 0x00080000
24 #define X86_EFLAGS_VIP 0x00100000
25 #define X86_EFLAGS_ID 0x00200000
30 #define X86_CR0_PE 0x00000001
31 #define X86_CR0_MP 0x00000002
32 #define X86_CR0_EM 0x00000004
33 #define X86_CR0_TS 0x00000008
34 #define X86_CR0_ET 0x00000010
35 #define X86_CR0_NE 0x00000020
36 #define X86_CR0_WP 0x00010000
37 #define X86_CR0_AM 0x00040000
38 #define X86_CR0_NW 0x20000000
39 #define X86_CR0_CD 0x40000000
40 #define X86_CR0_PG 0x80000000
45 #define X86_CR3_PWT 0x00000008
46 #define X86_CR3_PCD 0x00000010
47 #define X86_CR3_PCID_MASK 0x00000fff
52 #define X86_CR4_VME 0x00000001
53 #define X86_CR4_PVI 0x00000002
54 #define X86_CR4_TSD 0x00000004
55 #define X86_CR4_DE 0x00000008
56 #define X86_CR4_PSE 0x00000010
57 #define X86_CR4_PAE 0x00000020
58 #define X86_CR4_MCE 0x00000040
59 #define X86_CR4_PGE 0x00000080
60 #define X86_CR4_PCE 0x00000100
61 #define X86_CR4_OSFXSR 0x00000200
62 #define X86_CR4_OSXMMEXCPT 0x00000400
63 #define X86_CR4_VMXE 0x00002000
64 #define X86_CR4_RDWRGSFS 0x00010000
65 #define X86_CR4_PCIDE 0x00020000
66 #define X86_CR4_OSXSAVE 0x00040000
67 #define X86_CR4_SMEP 0x00100000
68 #define X86_CR4_SMAP 0x00200000
73 #define X86_CR8_TPR 0x0000000F
82 #define CX86_PCR0 0x20
84 #define CX86_CCR0 0xc0
85 #define CX86_CCR1 0xc1
86 #define CX86_CCR2 0xc2
87 #define CX86_CCR3 0xc3
88 #define CX86_CCR4 0xe8
89 #define CX86_CCR5 0xe9
90 #define CX86_CCR6 0xea
91 #define CX86_CCR7 0xeb
92 #define CX86_PCR1 0xf0
93 #define CX86_DIR0 0xfe
94 #define CX86_DIR1 0xff
95 #define CX86_ARR_BASE 0xc4
96 #define CX86_RCR_BASE 0xdc
100 #define X86_VM_MASK X86_EFLAGS_VM
102 #define X86_VM_MASK 0