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

Barry Song 21cnbao at gmail.com
Wed Sep 21 03:53:08 EDT 2011


2011/9/21 Barry Song <21cnbao at gmail.com>:
> 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.

stack and global variant is still a problem. then if we want a generic
function for resuming before mmu on, it seems it is best to be asm
codes.

>
>>
>
-barry



More information about the linux-arm-kernel mailing list