Date: Sun, 17 Aug 2003 17:35:46 -0700 From: Marcel Moolenaar <marcel@xcllnt.net> To: David Xu <davidxu@FreeBSD.org> Cc: threads@FreeBSD.org Subject: Re: First draft: rewrite of {get|set|swap}context(3) Message-ID: <20030818003546.GA44401@dhcp42.pn.xcllnt.net> In-Reply-To: <200308180734.21128.davidxu@FreeBSD.org> References: <20030817185015.GB928@dhcp42.pn.xcllnt.net> <200308180647.52744.davidxu@FreeBSD.org> <20030817231246.GA17207@dhcp42.pn.xcllnt.net> <200308180734.21128.davidxu@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 18, 2003 at 07:34:21AM +0800, David Xu wrote: > > > > > I think it should be UCF_NOSIGMASK. But for libkse, we really needn't > > > this kind of hack, because M:N thread in kernel always masks all signals, > > > you can always SIGFILLSET(&uc.uc_sigmask) before call set_context. > > > > I tried this, but it didn't fix mutex_d. > > I can pass mutex_d if gettimeofday does not return -1, but it is strange > that gettimeofday can return -1 and errno is EFAULT. The copyout() is probably failing or we're not restoring the return registers properly. > so line 414 of mutex_d.c is asserted: > assert (gettimeofday (&tv2, NULL) == 0); Yup. That's what I'm seeing too. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030818003546.GA44401>