Bug in kse_switchin()?

Andrew Belashov bel at orel.ru
Wed Sep 22 06:42:17 PDT 2004


Daniel Eischen wrote:
> On Wed, 22 Sep 2004, Andrew Belashov wrote:
> 
> 
>>Daniel Eischen wrote:
[...]
>> >
>> > 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?
> 
> 
> Does it have to be 64-bit aligned in order to use suword32()?

No, it should be 32-bit aligned.

> I believe you can use copyout, but perhaps the mailbox should
> be laid out so that fields are better aligned (doing this
> would break ABI).

The problem is deeper, than I thought. And it hard to debug without
modifying kernel...

--
With best regards,
Andrew Belashov.


More information about the freebsd-threads mailing list