arm: cache-cp15: add error when region is not aligned on MMU_SECTION
Since commit d877f8fd ("arm: provide a function for boards init code to modify MMU virtual-physical map"), the mmu_set_region_dcache_behaviour_phys parameter need to be aligned on MMU_SECTION_SIZE to avoid unpredictable behavior (alignment was done previously done in the function mmu_set_region_dcache_behaviour_phys). This patch raised a error when this alignment is not respected. Even if this function is called so early, this message can be printed when CONFIG_DEBUG_UART is activated or can be treated later with CONFIG_PRE_CONSOLE_BUFFER. CC: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by:Patrick Delaunay <patrick.delaunay@st.com>
Loading
Please register or sign in to comment