blob: a92f0b041a400b931aaf303ae9a7a69582c512fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff -Naru xresprobe-0.4.23debian1.orig/ddcprobe/lrmi.c xresprobe-0.4.23debian1/ddcprobe/lrmi.c
--- xresprobe-0.4.23debian1.orig/ddcprobe/lrmi.c 2006-03-22 13:29:05.000000000 +1030
+++ xresprobe-0.4.23debian1/ddcprobe/lrmi.c 2009-06-09 21:26:20.000000000 +0930
@@ -55,6 +55,12 @@
#include "x86-common.h"
#if defined(__linux__)
+#if !defined (IF_MASK)
+#define IF_MASK X86_EFLAGS_IF
+#define VIF_MASK X86_EFLAGS_VIF
+#define IOPL_MASK X86_EFLAGS_IOPL
+#define TF_MASK X86_EFLAGS_IOPL
+#endif
#define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
#elif defined(__NetBSD__) || defined(__FreeBSD__)
#define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL)
|