[PATCH 5/8] arm: mvebu: don't hardcode a physical address in headsmp.S

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Jun 5 17:33:21 EDT 2013


Dear Nicolas Pitre,

On Wed, 05 Jun 2013 16:42:20 -0400 (EDT), Nicolas Pitre wrote:

> You may simplify the above like this:
> 
> 	adr	r0, 1f
> 	ldr	r1, [r0]
> 	ldr	r0, [r0, r1]
> 	...,
> 1:	.long	coherency_phys_base - .

Ok, thanks, will try this. Note that the piece of code I've used was
shamelessly copied from other headsmp.S implementations, such as
plat-versatile, mach-ux500, mach-prima2 and mach-msm.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the linux-arm-kernel mailing list