Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2004 09:52:46 +0400
From:      Andrew Belashov <bel@orel.ru>
To:        freebsd-threads@freebsd.org
Cc:        Julian Elischer <julian@elischer.org>
Subject:   Re: Bug in kse_switchin()?
Message-ID:  <4151132E.8030904@orel.ru>
In-Reply-To: <Pine.GSO.4.43.0409211609030.26864-100000@sea.ntplx.net>
References:  <Pine.GSO.4.43.0409211609030.26864-100000@sea.ntplx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote:
 > On Tue, 21 Sep 2004, Julian Elischer wrote:
 >
 >>Andrew Belashov wrote:
 >>
 >>
 >>>See sys/kern/kern_kse.c
 >>>
 >>>In line with "suword32(&uap->tmbx->tm_lwp, td->td_tid)" kernel
 >>>not check return value (error state). This is correct?
 >>
 >>
 >>yes and no.
 >>
 >>You are correct.
 >>It is never correct to "not check" however we have just looked at that
 >>location 7 lines earlier, so we know
 >>that the page in question is loaded and valid. This is is "prbably safe".
 >>
 >>Probably we should look at the error value also, even if this is true.
 >
 >
 > Julian, you missed an important question below.  It looks
 > like he's trying to get this working with sparc64 and the
 > suword32 is generating an alignment exception.
 >
 > Is lwpid_t 64-bit on sparc64 or is it somehow not being aligned
 > properly within the mailbox?

lwpid_t on sparc64 is 32-bit (typedef __int32_t       __lwpid_t).

What about using copyout?

--
With best regards,
Andrew Belashov.



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