On Tue, Aug 30, 2011 at 10:47 PM, Stubbs, Andrew
<andrew_stu...@mentor.com> wrote:
> On 29/08/11 04:29, Michael Hope wrote:
>> On Sat, Aug 27, 2011 at 3:19 AM, Andrew Stubbs<a...@codesourcery.com>  wrote:
>>> Hi all,
>>>
>>> This patch adds support for -mcpu=native, -mtune=native, and -march=native
>>> for ARM Linux hosts.
>>>
>>> So far, it only recognises Cortex-A8 and Cortex-A9, so I really need to find
>>> out what the magic part numbers are for other cpus before this patch is
>>> complete. I couldn't just find this information listed anywhere. I think
>>> there are a lot of clues in the kernel code, but it's hard to mine and it
>>> mostly only goes as far the architecture version, not the individual cpu.
>>
>> Could you send linaro-dev@ an email and ask them where this API is 
>> documented?
>
> API? It reads /proc/cpuinfo, and that just spits out the magic numbers
> from the processor registers. Linaro-dev might know more magic numbers
> though.

Yip, most (all?) of the files under /proc are an API between user
space and the kernel and have the usual requirements of usability and
compatibility.

-- Michael

Reply via email to