OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../libx86/libx86-1.1-linux-2.6.26.patch
  5. # Copyright (C) 2011 The OpenSDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- libx86-1.1/lrmi.c.orig 2011-05-12 10:33:58.664002073 +0200
  17. +++ libx86-1.1/lrmi.c 2011-05-12 10:34:48.996002074 +0200
  18. @@ -55,6 +55,18 @@
  19. #include "x86-common.h"
  20. #if defined(__linux__)
  21. +#ifndef TF_MASK
  22. +#define TF_MASK X86_EFLAGS_TF
  23. +#endif
  24. +#ifndef IF_MASK
  25. +#define IF_MASK X86_EFLAGS_IF
  26. +#endif
  27. +#ifndef IOPL_MASK
  28. +#define IOPL_MASK X86_EFLAGS_IOPL
  29. +#endif
  30. +#ifndef VIF_MASK
  31. +#define VIF_MASK X86_EFLAGS_VIF
  32. +#endif
  33. #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
  34. #elif defined(__NetBSD__) || defined(__FreeBSD__)
  35. #define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL)