summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2008-08-23 12:44:26 +0000
committerMichael Januszewski <spock@gentoo.org>2008-08-23 12:44:26 +0000
commit2412c68698ebf23693ad97cc3ed526bff7015427 (patch)
tree70f783281ac038e1c324befc78cea55b12811c0e /sys-libs/lrmi/files
parentBump to add pkg_postrm (#235502) and register XML::LibXML::SAX too (diff)
downloadgentoo-2-2412c68698ebf23693ad97cc3ed526bff7015427.tar.gz
gentoo-2-2412c68698ebf23693ad97cc3ed526bff7015427.tar.bz2
gentoo-2-2412c68698ebf23693ad97cc3ed526bff7015427.zip
Fix bug #235495.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26 x86_64)
Diffstat (limited to 'sys-libs/lrmi/files')
-rw-r--r--sys-libs/lrmi/files/lrmi-0.10-kernel-2.6.26.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-libs/lrmi/files/lrmi-0.10-kernel-2.6.26.patch b/sys-libs/lrmi/files/lrmi-0.10-kernel-2.6.26.patch
new file mode 100644
index 000000000000..9547439376a3
--- /dev/null
+++ b/sys-libs/lrmi/files/lrmi-0.10-kernel-2.6.26.patch
@@ -0,0 +1,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