[PATCH 5/8] arm: mvebu: don't hardcode a physical address in headsmp.S
Nicolas Pitre
nico at fluxnic.net
Wed Jun 5 16:42:20 EDT 2013
On Wed, 5 Jun 2013, Thomas Petazzoni wrote:
[...]
> ENTRY(armada_xp_secondary_startup)
> + /* Get coherency fabric base physical address */
> + adr r0, 1f
> + ldmia r0, {r1, r2}
> + sub r0, r0, r1
> + add r2, r2, r0
> + ldr r0, [r2]
[...]
> +
> + .align 2
> +1:
> + .long .
> + .long coherency_phys_base
You may simplify the above like this:
adr r0, 1f
ldr r1, [r0]
ldr r0, [r0, r1]
...,
1: .long coherency_phys_base - .
Nicolas
More information about the linux-arm-kernel
mailing list