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

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Sep 24 04:06:00 EDT 2011


On Sat, Sep 24, 2011 at 10:02:50AM +0200, Per Forlin wrote:
> PC runs virtual addresses when calling cpu_v7_reset(). The MMU
> is switched off and "mov pc, r0" sets pc back to
> virtual addresses even though the MMU is switched off.
> This will result in a crash if the pipeline delay after
> MMU disable is one instruction. To prevent this set PC
> to physical addresses before disabling the MMU.

This is broken - it assumes physical memory starts at zero.  That's
not the case for many platforms.



More information about the linux-arm-kernel mailing list