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_PROCESSOR_FLAGS_H 20 #define _UAPI_ASM_X86_PROCESSOR_FLAGS_H 21 #include <linux/const.h> 22 #define X86_EFLAGS_CF_BIT 0 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define X86_EFLAGS_CF _BITUL(X86_EFLAGS_CF_BIT) 25 #define X86_EFLAGS_FIXED_BIT 1 26 #define X86_EFLAGS_FIXED _BITUL(X86_EFLAGS_FIXED_BIT) 27 #define X86_EFLAGS_PF_BIT 2 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define X86_EFLAGS_PF _BITUL(X86_EFLAGS_PF_BIT) 30 #define X86_EFLAGS_AF_BIT 4 31 #define X86_EFLAGS_AF _BITUL(X86_EFLAGS_AF_BIT) 32 #define X86_EFLAGS_ZF_BIT 6 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define X86_EFLAGS_ZF _BITUL(X86_EFLAGS_ZF_BIT) 35 #define X86_EFLAGS_SF_BIT 7 36 #define X86_EFLAGS_SF _BITUL(X86_EFLAGS_SF_BIT) 37 #define X86_EFLAGS_TF_BIT 8 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define X86_EFLAGS_TF _BITUL(X86_EFLAGS_TF_BIT) 40 #define X86_EFLAGS_IF_BIT 9 41 #define X86_EFLAGS_IF _BITUL(X86_EFLAGS_IF_BIT) 42 #define X86_EFLAGS_DF_BIT 10 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define X86_EFLAGS_DF _BITUL(X86_EFLAGS_DF_BIT) 45 #define X86_EFLAGS_OF_BIT 11 46 #define X86_EFLAGS_OF _BITUL(X86_EFLAGS_OF_BIT) 47 #define X86_EFLAGS_IOPL_BIT 12 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define X86_EFLAGS_IOPL (_AC(3,UL) << X86_EFLAGS_IOPL_BIT) 50 #define X86_EFLAGS_NT_BIT 14 51 #define X86_EFLAGS_NT _BITUL(X86_EFLAGS_NT_BIT) 52 #define X86_EFLAGS_RF_BIT 16 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define X86_EFLAGS_RF _BITUL(X86_EFLAGS_RF_BIT) 55 #define X86_EFLAGS_VM_BIT 17 56 #define X86_EFLAGS_VM _BITUL(X86_EFLAGS_VM_BIT) 57 #define X86_EFLAGS_AC_BIT 18 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define X86_EFLAGS_AC _BITUL(X86_EFLAGS_AC_BIT) 60 #define X86_EFLAGS_AC_BIT 18 61 #define X86_EFLAGS_AC _BITUL(X86_EFLAGS_AC_BIT) 62 #define X86_EFLAGS_VIF_BIT 19 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define X86_EFLAGS_VIF _BITUL(X86_EFLAGS_VIF_BIT) 65 #define X86_EFLAGS_VIP_BIT 20 66 #define X86_EFLAGS_VIP _BITUL(X86_EFLAGS_VIP_BIT) 67 #define X86_EFLAGS_ID_BIT 21 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define X86_EFLAGS_ID _BITUL(X86_EFLAGS_ID_BIT) 70 #define X86_CR0_PE_BIT 0 71 #define X86_CR0_PE _BITUL(X86_CR0_PE_BIT) 72 #define X86_CR0_MP_BIT 1 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define X86_CR0_MP _BITUL(X86_CR0_MP_BIT) 75 #define X86_CR0_EM_BIT 2 76 #define X86_CR0_EM _BITUL(X86_CR0_EM_BIT) 77 #define X86_CR0_TS_BIT 3 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define X86_CR0_TS _BITUL(X86_CR0_TS_BIT) 80 #define X86_CR0_ET_BIT 4 81 #define X86_CR0_ET _BITUL(X86_CR0_ET_BIT) 82 #define X86_CR0_NE_BIT 5 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 #define X86_CR0_NE _BITUL(X86_CR0_NE_BIT) 85 #define X86_CR0_WP_BIT 16 86 #define X86_CR0_WP _BITUL(X86_CR0_WP_BIT) 87 #define X86_CR0_AM_BIT 18 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 #define X86_CR0_AM _BITUL(X86_CR0_AM_BIT) 90 #define X86_CR0_NW_BIT 29 91 #define X86_CR0_NW _BITUL(X86_CR0_NW_BIT) 92 #define X86_CR0_CD_BIT 30 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 #define X86_CR0_CD _BITUL(X86_CR0_CD_BIT) 95 #define X86_CR0_PG_BIT 31 96 #define X86_CR0_PG _BITUL(X86_CR0_PG_BIT) 97 #define X86_CR3_PWT_BIT 3 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 #define X86_CR3_PWT _BITUL(X86_CR3_PWT_BIT) 100 #define X86_CR3_PCD_BIT 4 101 #define X86_CR3_PCD _BITUL(X86_CR3_PCD_BIT) 102 #define X86_CR3_PCID_MASK _AC(0x00000fff,UL) 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 #define X86_CR4_VME_BIT 0 105 #define X86_CR4_VME _BITUL(X86_CR4_VME_BIT) 106 #define X86_CR4_PVI_BIT 1 107 #define X86_CR4_PVI _BITUL(X86_CR4_PVI_BIT) 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 #define X86_CR4_TSD_BIT 2 110 #define X86_CR4_TSD _BITUL(X86_CR4_TSD_BIT) 111 #define X86_CR4_DE_BIT 3 112 #define X86_CR4_DE _BITUL(X86_CR4_DE_BIT) 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 #define X86_CR4_PSE_BIT 4 115 #define X86_CR4_PSE _BITUL(X86_CR4_PSE_BIT) 116 #define X86_CR4_PAE_BIT 5 117 #define X86_CR4_PAE _BITUL(X86_CR4_PAE_BIT) 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 #define X86_CR4_MCE_BIT 6 120 #define X86_CR4_MCE _BITUL(X86_CR4_MCE_BIT) 121 #define X86_CR4_PGE_BIT 7 122 #define X86_CR4_PGE _BITUL(X86_CR4_PGE_BIT) 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 #define X86_CR4_PCE_BIT 8 125 #define X86_CR4_PCE _BITUL(X86_CR4_PCE_BIT) 126 #define X86_CR4_OSFXSR_BIT 9 127 #define X86_CR4_OSFXSR _BITUL(X86_CR4_OSFXSR_BIT) 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 #define X86_CR4_OSXMMEXCPT_BIT 10 130 #define X86_CR4_OSXMMEXCPT _BITUL(X86_CR4_OSXMMEXCPT_BIT) 131 #define X86_CR4_VMXE_BIT 13 132 #define X86_CR4_VMXE _BITUL(X86_CR4_VMXE_BIT) 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 #define X86_CR4_SMXE_BIT 14 135 #define X86_CR4_SMXE _BITUL(X86_CR4_SMXE_BIT) 136 #define X86_CR4_FSGSBASE_BIT 16 137 #define X86_CR4_FSGSBASE _BITUL(X86_CR4_FSGSBASE_BIT) 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 #define X86_CR4_PCIDE_BIT 17 140 #define X86_CR4_PCIDE _BITUL(X86_CR4_PCIDE_BIT) 141 #define X86_CR4_OSXSAVE_BIT 18 142 #define X86_CR4_OSXSAVE _BITUL(X86_CR4_OSXSAVE_BIT) 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 #define X86_CR4_SMEP_BIT 20 145 #define X86_CR4_SMEP _BITUL(X86_CR4_SMEP_BIT) 146 #define X86_CR4_SMAP_BIT 21 147 #define X86_CR4_SMAP _BITUL(X86_CR4_SMAP_BIT) 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 #define X86_CR8_TPR _AC(0x0000000f,UL) 150 #define CX86_PCR0 0x20 151 #define CX86_GCR 0xb8 152 #define CX86_CCR0 0xc0 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 #define CX86_CCR1 0xc1 155 #define CX86_CCR2 0xc2 156 #define CX86_CCR3 0xc3 157 #define CX86_CCR4 0xe8 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 #define CX86_CCR5 0xe9 160 #define CX86_CCR6 0xea 161 #define CX86_CCR7 0xeb 162 #define CX86_PCR1 0xf0 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 #define CX86_DIR0 0xfe 165 #define CX86_DIR1 0xff 166 #define CX86_ARR_BASE 0xc4 167 #define CX86_RCR_BASE 0xdc 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 #endif 170