SOURCES: libx86-lrmi.patch (NEW) - fix for lrmi.c to compile on system with...

hawk hawk at pld-linux.org
Wed Feb 4 19:53:01 CET 2009


Author: hawk                         Date: Wed Feb  4 18:53:01 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix for lrmi.c to compile on system with 2.6.26 or newer header

---- Files affected:
SOURCES:
   libx86-lrmi.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/libx86-lrmi.patch
diff -u /dev/null SOURCES/libx86-lrmi.patch:1.1
--- /dev/null	Wed Feb  4 19:53:02 2009
+++ SOURCES/libx86-lrmi.patch	Wed Feb  4 19:52:56 2009
@@ -0,0 +1,16 @@
+--- lrmi.c.orig	2006-10-30 21:10:16.000000000 +0100
++++ lrmi.c	2009-02-04 19:51:44.180377549 +0100
+@@ -55,6 +55,13 @@
+ #include "x86-common.h"
+ 
+ #if defined(__linux__)
++#ifndef TF_MASK
++#define TF_MASK X86_EFLAGS_TF
++#define IF_MASK X86_EFLAGS_IF
++#define IOPL_MASK X86_EFLAGS_IOPL
++#define VIF_MASK X86_EFLAGS_VIF
++#define VIP_MASK X86_EFLAGS_VIP
++#endif
+ #define DEFAULT_VM86_FLAGS 	(IF_MASK | IOPL_MASK)
+ #elif defined(__NetBSD__) || defined(__FreeBSD__)
+ #define DEFAULT_VM86_FLAGS  (PSL_I | PSL_IOPL)
================================================================


More information about the pld-cvs-commit mailing list