From owner-freebsd-arm@FreeBSD.ORG Mon Oct 6 21:52:14 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BC87BC7A for ; Mon, 6 Oct 2014 21:52:14 +0000 (UTC) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 524BAF1A for ; Mon, 6 Oct 2014 21:52:13 +0000 (UTC) Received: from [192.168.225.11] (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id s96LpxhF060495; Mon, 6 Oct 2014 23:52:03 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <54330F01.4050108@fgznet.ch> Date: Mon, 06 Oct 2014 23:52:01 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Andrew Turner , freebsd-arm@freebsd.org Subject: Re: [RFC] Add and armv7hf TARGET_ARCH References: <20141006134626.59cc5573@bender.lan> In-Reply-To: <20141006134626.59cc5573@bender.lan> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2014 21:52:14 -0000 On 06.10.14 14:46, Andrew Turner wrote: > I'm interested in peoples opinion on creating a new TARGET_ARCH to > target ARMv7 SoCs. This will target all the current Cortex-A chips we > support but not the Raspberry Pi. My intention with this is to have it > become the tier 1 arm platform. > > This platform will support 32-bit Cortex-A based SoCs with a VFP > unit. As it would be targeting ARMv7 we could look at supporting > Thumb-2. > > As the VFP unit is optional and future SoCs without it will only be > supported by the armv6 TARGET_ARCH, however I would expect almost all > ARMv7 designs to include it. > > There is a downside to this, and as far as I know the problems are: > * It could be confusing to figure out which TARGET_ARCH you need. > * The Raspberry Pi will not be supported as its core is too old. > > I've attached my patch to build as armv7hf. It has been tested on a > Wandboard Quad. > > Comments? Here the patch does not apply. Manually applied. Configuring math/gmp shows a segfaulting clang++. Investigating later. Went back to clang built v6hf, since gcc built pkg on v6 segfaults too. Sigh. I need more such board to test in parallel... I think something like this part would also be needed, no? Thanks, Andreas Index: sys/arm/include/param.h =================================================================== --- sys/arm/include/param.h (revision 272668) +++ sys/arm/include/param.h (working copy) @@ -53,9 +53,13 @@ #define __PCI_REROUTE_INTERRUPT -#if __ARM_ARCH >= 6 +#if __ARM_ARCH >= 7 +#define _V6_SUFFIX "v7" +#endif +#if __ARM_ARCH == 6 #define _V6_SUFFIX "v6" -#else +#endif +#if __ARM_ARCH <= 5 #define _V6_SUFFIX "" #endif