libx86-0.99-ifmask.patch 584 B

12345678910111213141516171819202122
  1. --- lrmi.c.orig 2008-09-06 12:24:36.070136428 +0200
  2. +++ lrmi.c 2008-09-06 12:28:10.584287458 +0200
  3. @@ -55,6 +55,18 @@ OTHER DEALINGS IN THE SOFTWARE.
  4. #include "x86-common.h"
  5. #if defined(__linux__)
  6. +#ifndef TF_MASK
  7. +#define TF_MASK X86_EFLAGS_TF
  8. +#endif
  9. +#ifndef IF_MASK
  10. +#define IF_MASK X86_EFLAGS_IF
  11. +#endif
  12. +#ifndef IOPL_MASK
  13. +#define IOPL_MASK X86_EFLAGS_IOPL
  14. +#endif
  15. +#ifndef VIF_MASK
  16. +#define VIF_MASK X86_EFLAGS_VIF
  17. +#endif
  18. #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
  19. #elif defined(__NetBSD__) || defined(__FreeBSD__)
  20. #define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL)