[RFC] Add and armv7hf TARGET_ARCH

Warner Losh imp at bsdimp.com
Tue Oct 7 01:05:32 UTC 2014


On Oct 6, 2014, at 3:52 PM, Andreas Tobler <andreast-list at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20141006/f2b22beb/attachment.sig>


More information about the freebsd-arm mailing list