You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-libs/lrmi/files/lrmi-0.10-kernel-2.6.26.patch

19 lines
593 B

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