Dash:
[t2.git] / package / base / libx86 / lheader.patch
blob1afc3532feb8717d02c857e7043162d5b114f989
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../libx86/lheader.patch
5 # Copyright (C) 2009 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -Nur libx86-1.1-orig/lrmi.c libx86-1.1/lrmi.c
18 --- libx86-1.1-orig/lrmi.c 2009-09-29 16:34:06.000000000 +0000
19 +++ libx86-1.1/lrmi.c 2009-09-29 16:34:52.000000000 +0000
20 @@ -54,6 +54,13 @@
21 #include "lrmi.h"
22 #include "x86-common.h"
24 +#if defined(__linux__) && !defined(TF_MASK)
25 + #define TF_MASK X86_EFLAGS_TF
26 + #define IF_MASK X86_EFLAGS_IF
27 + #define VIF_MASK X86_EFLAGS_VIF
28 + #define IOPL_MASK X86_EFLAGS_IOPL
29 +#endif
31 #if defined(__linux__)
32 #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
33 #elif defined(__NetBSD__) || defined(__FreeBSD__)