Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 1998 08:46:27 +1000 (EST)
From:      John Birrell <jb@cimlogic.com.au>
To:        luoqi@watermarkgroup.com (Luoqi Chen)
Cc:        current@FreeBSD.ORG, dyson@FreeBSD.ORG
Subject:   Re: 'fatal trap 12' on boot (smp and up)
Message-ID:  <199805042246.IAA20176@cimlogic.com.au>
In-Reply-To: <9805041102.AA13313@watermarkgroup.com> from Luoqi Chen at "May 4, 98 07:02:01 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Luoqi Chen wrote:
> > I think I made a mistake in my patch that cause the core dump. Try to
> > enclose the two lines in the patch that reset fs and gs inside
> > if (pcb == curpcb) {}. Without this, the code might trash fs & gs in
> > another process' context.
> Probably pcb->pcb_fs and pcb->pcb_gs need to be reset too. Please use the
> following patch (I've also sent it in a follow-up to the original PR i386/6219).

This patch solves my problem, thanks! I'll check with John Dyson that
it looks OK, but a forked, kernel threaded program correctly handles
mutexes and condition variables. 

-- 
John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/
CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805042246.IAA20176>