Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2014 19:05:21 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Andreas Tobler <andreast-list@fgznet.ch>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: [RFC] Add and armv7hf TARGET_ARCH
Message-ID:  <D37E1B73-40E2-4B3E-BF15-29119CD6DA27@bsdimp.com>
In-Reply-To: <54330F01.4050108@fgznet.ch>
References:  <20141006134626.59cc5573@bender.lan> <54330F01.4050108@fgznet.ch>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <andreast-list@fgznet.ch> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D37E1B73-40E2-4B3E-BF15-29119CD6DA27>