[PATCH] add __ARM_ARCH_6ZK__ to cpukit/score/cpu/arm/rtems/score/arm.h
Cudmore, Alan P. (GSFC-5820)
alan.p.cudmore at nasa.gov
Wed Feb 20 17:58:10 UTC 2013
This is the only non-bsp file I needed to change to support the Rasberry Pi.
The Pi uses the Broadcom 2835, which in turn has the ARM1176jzf-s core. When I use the -mcpu=arm1176jzf-s option to build the BSP, the compiler defines __ARM_ARCH_6ZK__
I don't know if GCC uses __ARM_ARCH_6ZK__ for other ARM models, or if we should select a different value for CPU_MODEL_NAME.
Whatever you think is best.
Alan
On Feb 20, 2013, at 12:44 PM, Joel <joel.sherrill at oarcorp.com> wrote:
> Not that I see anything wrong with this but which CPU models
> does this cover? :)
>
> On 2/20/2013 11:41 AM, Cudmore, Alan P. (GSFC-5820) wrote:
>> diff --git a/cpukit/score/cpu/arm/rtems/score/arm.h b/cpukit/score/cpu/arm/rtems/score/arm.h
>> index 8f8c837..8471bb4 100644
>> --- a/cpukit/score/cpu/arm/rtems/score/arm.h
>> +++ b/cpukit/score/cpu/arm/rtems/score/arm.h
>> @@ -69,6 +69,10 @@ extern "C" {
>> # define CPU_MODEL_NAME "ARMv6J"
>> # define ARM_MULTILIB_ARCH_V4
>>
>> +#elif defined(__ARM_ARCH_6ZK__)
>> +# define CPU_MODEL_NAME "ARMv6ZK"
>> +# define ARM_MULTILIB_ARCH_V4
>> +
>> #elif defined(__ARM_ARCH_6M__)
>> # define CPU_MODEL_NAME "ARMv6M"
>>
>>
>> _______________________________________________
>> rtems-devel mailing list
>> rtems-devel at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-devel
>
More information about the devel
mailing list