lrmi-0.10-kernel-2.6.26.patch 593 B

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