On Tue, 5 Jul 2011, Tixy wrote:
For the case of "ldr pc, [...]", you are right, trying to execute this on ARMv4 is UNPREDICTABLE, so I need to think again. Possibly just try a CLZ instruction and see if we get an undef abort, that would tell us we're on ARMv5?
Look at cpu_architecture() in arch/arm/kernel/setup.c which should tell you at run time the actual architecture being used.
Nicolas