@@ -19,16 +19,23 @@
# define S "4"
#endif
+#define DE_VECTOR 0
#define DB_VECTOR 1
+#define NMI_VECTOR 2
#define BP_VECTOR 3
+#define OF_VECTOR 4
+#define BR_VECTOR 5
#define UD_VECTOR 6
+#define NM_VECTOR 7
#define DF_VECTOR 8
#define TS_VECTOR 10
#define NP_VECTOR 11
#define SS_VECTOR 12
#define GP_VECTOR 13
#define PF_VECTOR 14
+#define MF_VECTOR 16
#define AC_VECTOR 17
+#define MC_VECTOR 18
#define CP_VECTOR 21
#define X86_CR0_PE_BIT (0)
deleted file mode 100644
@@ -1,21 +0,0 @@
-#ifndef X86_TYPES_H
-#define X86_TYPES_H
-
-#define DE_VECTOR 0
-#define DB_VECTOR 1
-#define NMI_VECTOR 2
-#define BP_VECTOR 3
-#define OF_VECTOR 4
-#define BR_VECTOR 5
-#define UD_VECTOR 6
-#define NM_VECTOR 7
-#define DF_VECTOR 8
-#define TS_VECTOR 10
-#define NP_VECTOR 11
-#define SS_VECTOR 12
-#define GP_VECTOR 13
-#define PF_VECTOR 14
-#define MF_VECTOR 16
-#define MC_VECTOR 18
-
-#endif
@@ -2,7 +2,6 @@
#include "vm.h"
#include "libcflat.h"
#include "desc.h"
-#include "types.h"
#include "processor.h"
static void test_cmpxchg8b(u32 *mem)
@@ -4,7 +4,6 @@
#include "vm.h"
#include "libcflat.h"
#include "desc.h"
-#include "types.h"
#include "processor.h"
#include "vmalloc.h"
#include "alloc_page.h"
@@ -8,7 +8,6 @@
#include "alloc.h"
#include "vm.h"
-#include "types.h"
#include "processor.h"
#include "vmalloc.h"
#include "alloc_page.h"
@@ -10,7 +10,6 @@
#include "vm.h"
#include "fwcfg.h"
#include "smp.h"
-#include "types.h"
#include "alloc_page.h"
#include "isr.h"
#include "apic.h"
@@ -5,7 +5,6 @@
#include "msr.h"
#include "vm.h"
#include "smp.h"
-#include "types.h"
#include "alloc_page.h"
#include "isr.h"
#include "apic.h"
@@ -16,7 +16,6 @@
#include "isr.h"
#include "desc.h"
#include "apic.h"
-#include "types.h"
#include "vmalloc.h"
#include "alloc_page.h"
#include "smp.h"
The file types.h never declared any types, only exception vectors which are partially re-defined in processor.h. Move the remaining vector definitions to processor.h and remove types.h, as all users already include processor.h Signed-off-by: Mathias Krause <minipli@grsecurity.net> --- lib/x86/processor.h | 7 +++++++ x86/types.h | 21 --------------------- x86/cmpxchg8b.c | 1 - x86/emulator.c | 1 - x86/pmu_pebs.c | 1 - x86/svm.c | 1 - x86/svm_tests.c | 1 - x86/vmx_tests.c | 1 - 8 files changed, 7 insertions(+), 27 deletions(-) delete mode 100644 x86/types.h