[PATCH] arm: proc-v7: pc phy addresses before disable MMU

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Sep 24 09:02:02 EDT 2011


On Sat, Sep 24, 2011 at 02:55:42PM +0200, Per Förlin wrote:
> On 09/24/2011 01:00 PM, Will Deacon wrote:
> > On Sat, Sep 24, 2011 at 10:32:48AM +0100, Per Förlin wrote:
> >> I am trying to figure out how I can get the value of PHYS_OFFSET in assembler code (proc-v7.S).
> >> I guess I could use the value calculated in arch/arm/kernel.head.S but wouldn't that make
> >> this patch dependent on CONFIG_ARM_PATCH_PHYS_VIRT?
> > 
> > Wouldn't we just be better off passing a physical address to cpu_v7_reset
> > instead?
> > 
> Good point! I'm fine with that.

Alternatively, call it using the phys address.



More information about the linux-arm-kernel mailing list