'bx lr' vs 'mov pc,lr'

Russell King - ARM Linux linux at arm.linux.org.uk
Sun Sep 13 18:58:35 EDT 2009


On Mon, Sep 14, 2009 at 12:55:24AM +0300, Felipe Contreras wrote:
> I noticed that in 'arch/arm/lib/delay.S' we are using 'mov pc, lr'
> instead of 'bx lr'. Why? It looks like 'mov pc, lr' is used all over
> the place, but I can't find out what's the reason.

Why do you want bx?  bx isn't available on older CPUs.



More information about the linux-arm-kernel mailing list