Nagy Karoly Gabriel
15 years ago
committed by
Alejandro Mery
1 changed files with 20 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||||||
|
http://gentoo-overlays.zugaina.org/sabayon/portage/sys-apps/ddcxinfo-knoppix/files/ddcxinfo-knoppix-kernel-headers.patch
|
||||||
|
--- ./lrmi.c.orig 2008-12-15 15:27:02.000000000 +0000
|
||||||
|
+++ ./lrmi.c 2008-12-15 15:29:03.000000000 +0000
|
||||||
|
@@ -15,6 +15,16 @@ This software has NO WARRANTY. Use it a
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/io.h>
|
||||||
|
#include <asm/vm86.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 NT_MASK X86_EFLAGS_NT
|
||||||
|
+ #define VIF_MASK X86_EFLAGS_VIF
|
||||||
|
+ #define VIP_MASK X86_EFLAGS_VIP
|
||||||
|
+ #define IOPL_MASK X86_EFLAGS_IOPL
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
|
||||||
|
#ifdef USE_LIBC_VM86
|
||||||
|
#include <sys/vm86.h>
|
Loading…
Reference in new issue