diff options
author | Christoph Hellwig <hch@lst.de> | 2018-01-09 09:00:36 -0500 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-01-30 22:16:07 -0500 |
commit | 372def1f934134cb391234ccdf23c21ae94343c2 (patch) | |
tree | 04051029e0ae6a768d4026e8bc575d26fdbe9c6b | |
parent | 0ca7a0b7c13ecafd12b37a6793d3e302dfea0475 (diff) |
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>
-rw-r--r-- | arch/riscv/mm/init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index a6c0e8e7d888..c77df8142be2 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c | |||
@@ -41,8 +41,6 @@ void setup_zero_page(void) | |||
41 | 41 | ||
42 | void __init paging_init(void) | 42 | void __init paging_init(void) |
43 | { | 43 | { |
44 | init_mm.pgd = (pgd_t *)pfn_to_virt(csr_read(sptbr)); | ||
45 | |||
46 | setup_zero_page(); | 44 | setup_zero_page(); |
47 | local_flush_tlb_all(); | 45 | local_flush_tlb_all(); |
48 | zone_sizes_init(); | 46 | zone_sizes_init(); |