[PATCH] add __ARM_ARCH_6ZK__ to cpukit/score/cpu/arm/rtems/score/arm.h

Joel Sherrill joel.sherrill at OARcorp.com
Fri Feb 22 21:53:35 UTC 2013


On 2/20/2013 11:58 AM, Cudmore, Alan P. (GSFC-5820) wrote:
> 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.
I am happy with that definition. I just wanted something on
the mailing list record about what it corresponded to as
real silicon and gcc flags.

Thanks.

--joel
> 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


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the devel mailing list