armv8: LSCH2 early and final mmu needs matching NS attribute
authorEd Swarthout <Ed.Swarthout@nxp.com>
Mon, 28 Mar 2016 21:16:01 +0000 (16:16 -0500)
committerYork Sun <york.sun@nxp.com>
Wed, 6 Apr 2016 15:35:09 +0000 (08:35 -0700)
commit70e21b06425ad6e1e90931333a704a600941cfff
treeb71cbe25e89ccf795f692e26fd1dcf603aac7ded
parentce96ba4b84ceec7d0d3ed3318d25d7f1286a5535
armv8: LSCH2 early and final mmu needs matching NS attribute

When switching between the early and final mmu tables, the stack will
get corrupted if the Non-Secure attribute is different.  For ls1043a,
this issue is currently masked because flush_dcache_all is called
before the switch when CONFIG_SYS_DPAA_FMAN is defined.

Signed-off-by: Ed Swarthout <Ed.Swarthout@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/include/asm/arch-fsl-layerscape/cpu.h