[PATCH] ARM: cache-l2x0: add resume entry for l2 in secure mode

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Sep 21 03:51:37 EDT 2011


On Wed, Sep 21, 2011 at 03:49:23PM +0800, Barry Song wrote:
> 2011/9/21 Russell King - ARM Linux <linux at arm.linux.org.uk>:
> > On Wed, Sep 21, 2011 at 01:53:37PM +0800, Barry Song wrote:
> >> yes. imx6q actually needs to enable l2 earlier than cpu_resume(and mmu
> >> resume). so how about letting outer_resume support both phy and virt
> >> address restore?
> >
> > You can't call C functions in the kernel before the MMU is enabled.
> 
> well. a direct call will fall into virtual address. then we need to
> transfer it to a phy address before calling it.

No.  I say again, you can't call C functions in the kernel before the
MMU is enabled.

C functions have literal tables that contain absolute virtual addresses
of variables and such like.  Without the MMU enabled, those addresses
are meaningless and won't point at the right place.



More information about the linux-arm-kernel mailing list