summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/pgtable.h
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@sifive.com>2019-03-04 11:41:36 -0800
committerPalmer Dabbelt <palmer@sifive.com>2019-03-04 11:47:04 -0800
commit13fd5de06514458eb320188b7a815d65696efd99 (patch)
treefaa6d1ce1c20eb3b909ccecf481b865869463083 /arch/riscv/include/asm/pgtable.h
parentf7ccc35aa3bd728ad8451f4d06e801cfe5c5498c (diff)
parent823900cd01301c4720b23afa9f3d08036e07245a (diff)
RISC-V: Fixmap support and MM cleanups
This patchset does: 1. Moves MM related code from kernel/setup.c to mm/init.c 2. Implements compile-time fixed mappings Using fixed mappings, we get earlyprints even without SBI calls. For example, we can now use kernel parameter "earlycon=uart8250,mmio,0x10000000" to get early prints on QEMU virt machine without using SBI calls. The patchset is tested on QEMU virt machine. Palmer: It looks like some of the code movement here conflicted with the patches to move hartid handling around. As far as I can tell the only changed code was in smp_setup_processor_id(), and I've kept the one in smp.c.
Diffstat (limited to 'arch/riscv/include/asm/pgtable.h')
-rw-r--r--arch/riscv/include/asm/pgtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
index a8179a8c1491..1141364d990e 100644
--- a/arch/riscv/include/asm/pgtable.h
+++ b/arch/riscv/include/asm/pgtable.h
@@ -404,6 +404,7 @@ static inline int ptep_clear_flush_young(struct vm_area_struct *vma,
#define kern_addr_valid(addr) (1) /* FIXME */
#endif
+extern void setup_bootmem(void);
extern void paging_init(void);
static inline void pgtable_cache_init(void)