Skip to content
Commit f0fb17d8 authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Tom Rini
Browse files

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: default avatarPatrick Delaunay <patrick.delaunay@st.com>
parent 2c02152a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment