From owner-freebsd-arm@FreeBSD.ORG Tue Oct 7 01:05:32 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5490F867 for ; Tue, 7 Oct 2014 01:05:32 +0000 (UTC) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 23ECC77F for ; Tue, 7 Oct 2014 01:05:31 +0000 (UTC) Received: by mail-pa0-f41.google.com with SMTP id eu11so6223436pac.14 for ; Mon, 06 Oct 2014 18:05:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=ScBz1YTqoPD5V9bXlZfkFPjWd7ptqfNeCzeOutMbynU=; b=kLWBgQJgWL7WM+brYhLQere5BP8ubNdTNE5jGEOQN0js+hUmLdifrMPRs5guyazGaf k37rO8g0wAuamfIMkWP4FPvGQcWeVK1r7vJRf4a+LbJ5MaufmSNagE88oQjJOg2db8GX TLCgRFHwe3P2wWJ0J0cmaADh/BSc/WMlcv14ht5kaKttLKX4nu64L1uy8xuhAT2DbbQX I90ATZEJ3kjaFqcnI07lmszjAZHfWtvnHUTtnu4hxRQ7N3FOnmEjurBdsGgjL6vxZFE4 JYDXNtSm/6xoGx9r4h9FtyEHP6LYBxWbL92hosXqeyjR7s5nFRqxaYCMTSYqP8lW6MGO LbPg== X-Gm-Message-State: ALoCoQmxPVd1pDiFLTn5JuMgSTpKySTulCFTI/Vcd0QUBMTCaNvi1mIgii3tEYXSUlxl2vcAl0TD X-Received: by 10.70.37.208 with SMTP id a16mr251853pdk.147.1412643924841; Mon, 06 Oct 2014 18:05:24 -0700 (PDT) Received: from [10.64.24.174] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id qs4sm14283630pbb.90.2014.10.06.18.05.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Oct 2014 18:05:24 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_6DE1E3B5-466D-4586-ACCE-6DE5181F465C"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [RFC] Add and armv7hf TARGET_ARCH From: Warner Losh In-Reply-To: <54330F01.4050108@fgznet.ch> Date: Mon, 6 Oct 2014 19:05:21 -0600 Message-Id: References: <20141006134626.59cc5573@bender.lan> <54330F01.4050108@fgznet.ch> To: Andreas Tobler X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-arm@freebsd.org 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: Tue, 07 Oct 2014 01:05:32 -0000 --Apple-Mail=_6DE1E3B5-466D-4586-ACCE-6DE5181F465C Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Oct 6, 2014, at 3:52 PM, Andreas Tobler wrote: > 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 Does the fact that arm64 is armv8 matter? Warner > +#if __ARM_ARCH == 6 > #define _V6_SUFFIX "v6" > -#else > +#endif > +#if __ARM_ARCH <= 5 > #define _V6_SUFFIX "" > #endif > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" --Apple-Mail=_6DE1E3B5-466D-4586-ACCE-6DE5181F465C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUMzxRAAoJEGwc0Sh9sBEAR2oQAMcNvExS6MvNxc1AwRyI5mTe yiZXPkka3CFm6DoPbT2gcU5mmvvjBNoyfXhQJFWGdSU4kRs0d26CTsOO4Jmxg9Le uzbnqATbP6COqiYwDPabZ3cp8uDO+oYUDenwkIPm8SL/nvpuj6T1iVeaH214w0jx /JfG0mV9V+rtMYdFXzXaamjAR1EfILY1PaeMFq/xL8WLodZDUvGHipCTIgK9/2ZU MIzSyBHUoJkgooHuHLJpWgyhKvzUqLxPnL8xJ9W8UwSkzqhrbQDSeWNd9f3ibExK pJNhE2eiM6nguyhrfmZ4ZthaZpsUOGojJ5MsXtjJie3QxGaffGmZ30Pt2ZZ8wWtU uMn/A1FwgekNpNN0L3cq9FO4JUyS6+ox+IYJvklb+ufrgolif0tCBDxqHS8Ca2b1 Ui+xOspHL4XE3Cm80a4Wj8YqtE+Uj4OGgLieSlCwAoC5/p3OP+46+n/yWTFmFlDG puEmYCTdYIqSUHlixGnPO1SAatxWy699pDnJgltVq7wDrB2kjttZzSY5Tb5d/V2p FAq5EazgtE3Ix+Uyw9JttcSQp22qWSd17buqjsOxkA7kH96X9EVj5mlTmAktcF4Z ETCXwMNyMUfo57GXa95WGQ/Rk7ZBkb+Cog0KMfEQr8ZjL73DyT+1y4HIEEdOoW5j YU+cp0VFtOC6YUcFjqsH =ImGi -----END PGP SIGNATURE----- --Apple-Mail=_6DE1E3B5-466D-4586-ACCE-6DE5181F465C--