summaryrefslogtreecommitdiff
blob: 9547439376a35b2b094f993b5eec9c640716b6fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -Naurp lrmi-0.10-orig/lrmi.c lrmi-0.10/lrmi.c
--- lrmi-0.10-orig/lrmi.c	2008-08-23 14:39:44.000000000 +0200
+++ lrmi-0.10/lrmi.c	2008-08-23 14:40:25.000000000 +0200
@@ -61,6 +61,14 @@ OTHER DEALINGS IN THE SOFTWARE.
 
 #include "lrmi.h"
 
+/* 2.6.26+ kernels don't define the legacy masks. */
+#if defined(__linux__) && !defined(TF_MASK)
+	#define TF_MASK X86_EFLAGS_TF
+	#define IF_MASK X86_EFLAGS_IF
+	#define VIF_MASK X86_EFLAGS_VIF
+	#define IOPL_MASK X86_EFLAGS_IOPL
+#endif
+
 #define REAL_MEM_BASE 	((void *)0x10000)
 #define REAL_MEM_SIZE 	0x40000
 #define REAL_MEM_BLOCKS 	0x100