projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ca7a0b
)
riscv: don't read back satp in paging_init
author
Christoph Hellwig
<hch@lst.de>
Tue, 9 Jan 2018 14:00:36 +0000
(15:00 +0100)
committer
Palmer Dabbelt
<palmer@dabbelt.com>
Wed, 31 Jan 2018 03:16:07 +0000
(19:16 -0800)
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>
arch/riscv/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/riscv/mm/init.c
b/arch/riscv/mm/init.c
index a6c0e8e7d888690f72b53f7423c77c96c2913872..c77df8142be2eaa9525130b3cbea70e191a20aba 100644
(file)
--- a/
arch/riscv/mm/init.c
+++ b/
arch/riscv/mm/init.c
@@
-41,8
+41,6
@@
void setup_zero_page(void)
void __init paging_init(void)
{
- init_mm.pgd = (pgd_t *)pfn_to_virt(csr_read(sptbr));
-
setup_zero_page();
local_flush_tlb_all();
zone_sizes_init();