lkml.org 
[lkml]   [1997]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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 13:38    [W:0.054 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site