From owner-freebsd-ppc@FreeBSD.ORG Thu Aug 3 18:34:46 2006 Return-Path: X-Original-To: freebsd-ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 076E016A4E0 for ; Thu, 3 Aug 2006 18:34:46 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk.360sip.com [72.236.70.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC0B443D77 for ; Thu, 3 Aug 2006 18:34:39 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.1.56] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.6/8.13.6) with ESMTP id k73IYa1m046124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Aug 2006 11:34:37 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Message-ID: <44D2419F.1050100@FreeBSD.org> Date: Thu, 03 Aug 2006 11:34:07 -0700 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: David Edelsohn References: <44D23F02.9020709@FreeBSD.org> <200608031826.k73IQX835138@makai.watson.ibm.com> In-Reply-To: <200608031826.k73IQX835138@makai.watson.ibm.com> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@FreeBSD.org Subject: Re: Unaligned 64-bits access on FreeBSD/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 18:34:46 -0000 David Edelsohn wrote: >>>>>> Maxim Sobolev writes: > > Maxim> I came over a problem that unaligned 64-bits access to a memory (via > Maxim> uint8_t or long long pointer) causes SIGBUS. Is it expected behavior or not? > > The kernel should catch and fixup any unaligned accesses that the > hardware does not allow. Well, actually *nix has a long history of just killing the program with SIGBUS in such case. I am just wondering if it's really expected behavior on FreeBSD/powerpc or not. -Maxim