On 6 September 2011 14:38, Mans Rullgard mans.rullgard@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.
Dave