From owner-cvs-all Thu Nov 7 2:41: 2 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E386437B401; Thu, 7 Nov 2002 02:41:01 -0800 (PST) Received: from pump3.york.ac.uk (pump3.york.ac.uk [144.32.128.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 734ED43E3B; Thu, 7 Nov 2002 02:41:00 -0800 (PST) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from ury.york.ac.uk (ury.york.ac.uk [144.32.108.81]) by pump3.york.ac.uk (8.10.2/8.10.2) with ESMTP id gA7AerE29815; Thu, 7 Nov 2002 10:40:53 GMT Received: from ury.york.ac.uk (localhost.york.ac.uk [127.0.0.1]) by ury.york.ac.uk (8.12.3/8.12.3) with ESMTP id gA7AerSf008887; Thu, 7 Nov 2002 10:40:53 GMT (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from localhost (gavin@localhost) by ury.york.ac.uk (8.12.3/8.12.3/Submit) with ESMTP id gA7Aerwl008884; Thu, 7 Nov 2002 10:40:53 GMT X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Thu, 7 Nov 2002 10:40:53 +0000 (GMT) From: Gavin Atkinson To: David Xu Cc: , Subject: Re: cvs commit: src/sys/i386/i386 exception.s genassym.c trap.c vm86.c vm86bios.s src/sys/i386/include pcb.h vm86.h In-Reply-To: <200211070134.gA71YNn0045906@repoman.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 6 Nov 2002, David Xu wrote: > Log: > 1.Fix smp race between kernel vm86 BIOS calling and userland vm86 mode code, > remove global variable in_vm86call, set vm86 calling flag in PCB flags. > > 2.Fix vm86 BIOS calling preempted problem by changing vm86_lock mutex type > from MTX_DEF to MTX_SPIN. vm86pcb is not remembered in thread struct, > when the thread calling vm86 BIOS is preempted by interrupt thread, > and later switching back to the thread would cause incorrect context be > loaded into CPU registers, this leads to kernel crash. Thankyou! Thankyou! Which of your patches did you go for in the end? I have been using http://people.freebsd.org/~davidxu/vm86.diff for over a month without problem. Gavin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message