diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-12 17:41:55 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:41:55 +0200 |
commit | 22a382fe67e01c7af696a4fd540e1086bc617765 (patch) | |
tree | b17d694099f32ba54b80a1da8f670db21a074fa5 /libraries/lrmi/lrmi-0.10-newheaders.patch | |
parent | 89f80920b48b04606923ba27922d3bf832ca6a1d (diff) |
libraries/lrmi: Updated for version 0.10
Diffstat (limited to 'libraries/lrmi/lrmi-0.10-newheaders.patch')
-rw-r--r-- | libraries/lrmi/lrmi-0.10-newheaders.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libraries/lrmi/lrmi-0.10-newheaders.patch b/libraries/lrmi/lrmi-0.10-newheaders.patch new file mode 100644 index 0000000000000..ae04c47e16ee7 --- /dev/null +++ b/libraries/lrmi/lrmi-0.10-newheaders.patch @@ -0,0 +1,39 @@ +diff -up lrmi-0.10/lrmi.c.BAD lrmi-0.10/lrmi.c +--- lrmi-0.10/lrmi.c.BAD 2008-09-17 14:41:28.000000000 -0400 ++++ lrmi-0.10/lrmi.c 2008-09-17 14:45:17.000000000 -0400 +@@ -239,7 +239,7 @@ LRMI_free_real(void *m) + + + #if defined(__linux__) +-#define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK) ++#define DEFAULT_VM86_FLAGS (X86_EFLAGS_IF | X86_EFLAGS_IOPL) + #elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) + #define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL) + #define TF_MASK PSL_T +@@ -822,7 +822,7 @@ run_vm86(void) + + CONTEXT_REGS.REG(cs) = get_int_seg(v); + CONTEXT_REGS.REG(eip) = get_int_off(v); +- CONTEXT_REGS.REG(eflags) &= ~(VIF_MASK | TF_MASK); ++ CONTEXT_REGS.REG(eflags) &= ~(X86_EFLAGS_VIF | X86_EFLAGS_TF); + + continue; + } +@@ -862,7 +862,7 @@ vm86_callback(int sig, int code, struct + + CONTEXT_REGS.REG(cs) = get_int_seg(v); + CONTEXT_REGS.REG(eip) = get_int_off(v); +- CONTEXT_REGS.REG(eflags) &= ~(VIF_MASK | TF_MASK); ++ CONTEXT_REGS.REG(eflags) &= ~(X86_EFLAGS_VIF | X86_EFLAGS_TF); + + break; + } +@@ -916,7 +916,7 @@ vm86_callback(int sig, int code, struct + + CONTEXT_REGS.REG(cs) = get_int_seg(addr[1]); + CONTEXT_REGS.REG(eip) = get_int_off(addr[1]); +- CONTEXT_REGS.REG(eflags) &= ~(VIF_MASK | TF_MASK); ++ CONTEXT_REGS.REG(eflags) &= ~(X86_EFLAGS_VIF | X86_EFLAGS_TF); + } else { + if (emulate() == 0) { + context.success = 0; |