Hello.

Jacob Perkins wrote:
 > Whenever I run dosemu-freedos 1.0.2.1 it will eventually
 > cause my
 > computer to reboot.  I'm running Gentoo Linux with kernel
 > 2.4.17 with preempt patch.
Due to an obvious bug in the latest 2.4 kernels, dosemu can 
easily cause the system to panic. Generally it only oopses, 
but maybe with preempt patch it reboots instead.
Try the attached fix.
No guarantee that it will fix your particular problem (I've 
seen only oopses, lots of them, but no reboots) but it might 
fix the segfaults (but not page faults) on startup and some 
other crap people lately observed with dosemu.
--- linux/arch/i386/kernel/traps.c      Sun Sep 30 23:26:08 2001
+++ linux/arch/i386/kernel/traps.c      Sat Feb  9 02:48:31 2002
@@ -269,8 +269,12 @@
 static void inline do_trap(int trapnr, int signr, char *str, int vm86,
                           struct pt_regs * regs, long error_code, siginfo_t *info)
 {
-       if (vm86 && regs->eflags & VM_MASK)
-               goto vm86_trap;
+       if (regs->eflags & VM_MASK) {
+               if (vm86)
+                       goto vm86_trap;
+               else
+                       goto trap_signal;
+       }
        if (!(regs->xcs & 3))
                goto kernel_trap;
 


Reply via email to