ARM: mmu: Introduce ARM_TTB_SIZE
Commit 1c33aac ("ARM: use memalign to
allocate page table"), reasonalby changed TTB allocation size from
SZ_32K to SZ_16K (TTB's real size), but it also changed alignment from
SZ_16K to SZ_64K for unclear reasons.

Reading various TTBR related ARM documentation it seems that worst
case alignment for it is 16KiB (bits [0, 13 - N] must be zero) which
also matches early TTB allocation code.

Since both early and regular MMU code has to share this paramter,
introduce ARM_TTB_SIZE and use it in both cases for both size and
alignment.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e3e54c6 commit ee9576d2679537a292b8f5e50765eba707be7c87
@Andrey Smirnov Andrey Smirnov authored on 21 May 2018
Sascha Hauer committed on 22 May 2018
Showing 2 changed files
View
arch/arm/cpu/mmu.c
View
arch/arm/include/asm/barebox-arm.h