From owner-freebsd-current Mon May 7 0:15:24 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id EA18F37B423 for ; Mon, 7 May 2001 00:15:21 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id RAA30501; Mon, 7 May 2001 17:15:04 +1000 Date: Mon, 7 May 2001 17:13:52 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Daniel Eischen Cc: Andrew Gallatin , current@FreeBSD.ORG Subject: Re: Rfork'd threads, signals, and LDTs In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 5 May 2001, Daniel Eischen wrote: > On Sat, 5 May 2001, Andrew Gallatin wrote: > > > > Daniel Eischen writes: > > > > > > OK, thanks. Here's my guess at what should be changed for the Linux > > > emulator. If this looks correct, I'll commit it. > > > > > > Hmm, I wonder how linuxthreads works under FreeBSD without this > > > change... > > > > This breaks at least one version of the IBM JDK that I have > > laying around.. > > > > If anything, we may have two errors (at least partially) canceling > > each other out. I think it needs more work/thought prior to > > committing. > > We're still OK with the change to FreeBSDs native signal trampoline > though, right? I'll hold off on the Linux emulator changes until > we can figure out what the problem is. I was confused about what Linux does. Now I think it only copies %fs to the signal context struct. It loads %fs with USER_DS for the signal handler. It passes the previous (process) value of %gs to the signal handler. (Its early mistake of of switching %fs on every entry to the kernel was moved to FreeBSD.) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message