From owner-freebsd-arm@FreeBSD.ORG Thu Aug 1 16:28:45 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9773CB2A for ; Thu, 1 Aug 2013 16:28:45 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6BFD82DD0 for ; Thu, 1 Aug 2013 16:28:45 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1V4vk4-000PKD-2e; Thu, 01 Aug 2013 16:28:44 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r71GSfcs021592; Thu, 1 Aug 2013 10:28:41 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+X0I/ciJGOitdsNyppmq8P Subject: Re: Kernel Panic on DREAMPLUG: Alignment Fault 1 From: Ian Lepore To: mattia.rossi.mate@gmail.com In-Reply-To: <51FA8946.8030301@gmail.com> References: <51F92F79.9010809@gmail.com> <1375309907.45247.185.camel@revolution.hippie.lan> <51F9C81A.7000106@gmail.com> <1375358623.45247.189.camel@revolution.hippie.lan> <51FA1D2B.9090009@gmail.com> <1375363713.45247.193.camel@revolution.hippie.lan> <51FA8946.8030301@gmail.com> Content-Type: text/plain; charset="us-ascii" Date: Thu, 01 Aug 2013 10:28:41 -0600 Message-ID: <1375374521.45247.211.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2013 16:28:45 -0000 On Thu, 2013-08-01 at 18:13 +0200, Mattia Rossi wrote: > On 01/08/13 15:28, Ian Lepore wrote: > > On Thu, 2013-08-01 at 10:32 +0200, Mattia Rossi wrote: > >> > >> > >> Anyhow, I'll try to compile with gcc, and see what happens. > > The host system's compiler (gcc in your case) is used to build the > > selected compiler from src/, then that new compiler is used to build the > > rest of src/ into a runnable system. You can define WITHOUT_CLANG_IS_CC > > and WITHOUT_EABI to use gcc, and you should probably add WITHOUT_CLANG > > to avoid building it since it won't be used (and it takes forever to > > build). > Kernel built with gcc: > [snip... same fault as with clang] Yep, I just had the same experience -- same fault, same place, addresses differ by a few bytes which is to be expected with a different compiler. I've just confirmed that gcc and WITHOUT_ARM_EABI=yes works fine, so the problem seems to be that we're somehow not maintaining stack alignment correctly for EABI on architectures prior to armv6. I have a feeling somewhere in the code is something conditional on ARMV6 that really needs to include armv5te (which has the ldrd/strd instructions). -- Ian