auxv + neon
Mans Rullgard
mans.rullgard at linaro.org
Tue Sep 6 14:34:46 UTC 2011
On 6 September 2011 14:47, David Gilbert <david.gilbert at linaro.org> wrote:
> On 6 September 2011 14:38, Mans Rullgard <mans.rullgard at linaro.org> wrote:
>
>> I have an old kernel patch somewhere that allows userspace to read the
>> ID register
>> by emulating the relevant MRC in the illegal instruction trap handler. Perhaps
>> this is something worth reviving. With this approach, interpreting the ID value
>> would still be left as an exercise for the application.
>
> Would it be better for the kernel just to pass it in the AUXV somewhere?
> It's fine for the user space to interpret it - I'm thinking of ifunc
> to be able to decide
> based on a libraries idea that it knows what's better for a particular core.
A third possibility would be to stick it in somewhere in sysfs.
--
Mans Rullgard
Multimedia
mans.rullgard at linaro.org
More information about the linaro-dev
mailing list