9
0
Fork 0

ARM: mmu: Clear unpredictable bits for translation table

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Shiyan 2013-02-08 14:02:20 +04:00 committed by Sascha Hauer
parent c49819d903
commit caf066102e
1 changed files with 3 additions and 0 deletions

View File

@ -279,6 +279,9 @@ static int mmu_init(void)
if (get_cr() & CR_M) {
asm volatile ("mrc p15,0,%0,c2,c0,0" : "=r"(ttb));
/* Clear unpredictable bits [13:0] */
ttb = (unsigned long *)((unsigned long)ttb & ~0x3fff);
if (!request_sdram_region("ttb", (unsigned long)ttb, SZ_16K))
pr_err("Error: Can't request SDRAM region for ttb\n");
} else {