Dash:
[t2-trunk.git] / package / base / suspend / hotfix.patch
blobd74a6032672b04bf11d839224bfb75ed0f8b6e48
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../suspend/hotfix.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 Attention: same fix in x11/ddcxinfo!
19 --- suspend/vbetool/lrmi.c.vanilla 2009-10-30 18:58:30.000000000 +0000
20 +++ suspend/vbetool/lrmi.c 2009-10-30 18:56:02.000000000 +0000
21 @@ -54,6 +54,14 @@
22 #include "include/lrmi.h"
23 #include "x86-common.h"
25 +#ifndef TF_MASK
26 +#define TF_MASK X86_EFLAGS_TF
27 +#define IF_MASK X86_EFLAGS_IF
28 +#define IOPL_MASK X86_EFLAGS_IOPL
29 +#define VIF_MASK X86_EFLAGS_VIF
30 +#define VIP_MASK X86_EFLAGS_VIP
31 +#endif
33 #if defined(__linux__)
34 #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
35 #elif defined(__NetBSD__) || defined(__FreeBSD__)