Signed-off-by: Wallace Wadge wwadge@gmail.com --- arch/arm/mm/proc-v7.S | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index f1c8486..50b4f03 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S @@ -170,7 +170,11 @@ __v7_ca15mp_setup: mcreq p15, 0, r0, c1, c0, 1 #endif __v7_setup: +#ifdef CONFIG_XIP_KERNEL + ldr r12, =CONFIG_PHYS_OFFSET @ the local stack, use physical memory here. +#else adr r12, __v7_setup_stack @ the local stack +#endif stmia r12, {r0-r5, r7, r9, r11, lr} bl v7_flush_dcache_all ldmia r12, {r0-r5, r7, r9, r11, lr} -- 1.7.8.3