lkml.org 
[lkml]   [1997]   [Jan]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 30 Jan 1997 23:12:56 +0100 (MET)
FromHans Lermen <>
SubjectRe: 2.1.24 / DOSEMU / DOS 7
Hi David,

I guess you forgot the 'other half' of the patch ;-)

On Thu, 30 Jan 1997, David S. Miller wrote:

> > Please try this patch:> > --- arch/i386/kernel/vm86.c.~1~	Sun Jan 26 05:07:05 1997
> +++ arch/i386/kernel/vm86.c	Thu Jan 30 02:34:19 1997
> +/* This always gets called while holding kernel lock already, from
> + * traps.c:do_general_protection().> + */>  void handle_vm86_fault(struct kernel_vm86_regs * regs, long error_code)
                     ^^^^
The same sould be done for 'handle_vm86_trap', which also is called
with 'holding kernel lock'.               ^^^^

This snipplet out of patch-2.1.23 shows it:

 #define DO_VM86_ERROR(trapnr, signr, str, name, tsk) \
 asmlinkage void do_##name(struct pt_regs * regs, long error_code) \
 { \
+       lock_kernel(); \
        if (regs->eflags & VM_MASK) { \
                if (!handle_vm86_trap((struct kernel_vm86_regs *) regs, error_code, trapnr)) \
                                 ^^^^

Hans
<lermen@fgan.de>


\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2008