[PATCH 1/3] nds32: Fix the virtual address may map too much range by tlbop issue.
From: Greentime Hu
Date: Mon Apr 30 2018 - 03:22:38 EST
We use tlbop to map virtual address in the first beginning, however it
may map too much if DRAM size is not that big. We have to invalidate the
mapping when the page table is created.
Signed-off-by: Greentime Hu <greentime@xxxxxxxxxxxxx>
arch/nds32/kernel/setup.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c
index ba910e9e4ecb..2f5b2ccebe47 100644
@@ -293,6 +293,9 @@ void __init setup_arch(char **cmdline_p)
/* paging_init() sets up the MMU and marks all pages as reserved */
+ /* invalidate all TLB entries because the new mapping is created */
/* use generic way to parse */