Browse Source

riscv: don't read back satp in paging_init

init_mm.pgd (aka swapped_pgd) gets relocated like all other kernel
symbols by the elf loader, so there is no need to reload it from satp.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Christoph Hellwig 7 years ago
parent
commit
372def1f93
1 changed files with 0 additions and 2 deletions
  1. 0 2
      arch/riscv/mm/init.c

+ 0 - 2
arch/riscv/mm/init.c

@@ -41,8 +41,6 @@ void setup_zero_page(void)
 
 
 void __init paging_init(void)
 void __init paging_init(void)
 {
 {
-	init_mm.pgd = (pgd_t *)pfn_to_virt(csr_read(sptbr));
-
 	setup_zero_page();
 	setup_zero_page();
 	local_flush_tlb_all();
 	local_flush_tlb_all();
 	zone_sizes_init();
 	zone_sizes_init();