From owner-freebsd-threads@FreeBSD.ORG Wed Sep 22 13:42:16 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1D1216A4CE; Wed, 22 Sep 2004 13:42:16 +0000 (GMT) Received: from tts.orel.ru (tts.orel.ru [213.59.64.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id F264243D49; Wed, 22 Sep 2004 13:42:15 +0000 (GMT) (envelope-from bel@orel.ru) Received: from orel.ru (lg.orel.ru [62.33.11.59]) by tts.orel.ru (8.12.10/8.12.10/bel) with ESMTP id i8MDg8eT014238; Wed, 22 Sep 2004 17:42:10 +0400 Message-ID: <41518130.3000704@orel.ru> Date: Wed, 22 Sep 2004 17:42:08 +0400 From: Andrew Belashov Organization: ORIS User-Agent: Mozilla/5.0 (X11; U; FreeBSD sparc64; en-US; rv:1.6) Gecko/20040407 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Zombi-Check: on netra2.orel.ru cc: freebsd-threads@freebsd.org Subject: Re: Bug in kse_switchin()? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 13:42:17 -0000 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.