Skip to content

Commit 3ff2228

Browse files
author
Greentime Hu
committed
nds32: Fix the virtual address may map too much range by tlbop issue.
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@andestech.com>
1 parent b3b112b commit 3ff2228

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/nds32/kernel/setup.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ void __init setup_arch(char **cmdline_p)
293293
/* paging_init() sets up the MMU and marks all pages as reserved */
294294
paging_init();
295295

296+
/* invalidate all TLB entries because the new mapping is created */
297+
__nds32__tlbop_flua();
298+
296299
/* use generic way to parse */
297300
parse_early_param();
298301

0 commit comments

Comments
 (0)