Page MenuHomeFreeBSD

D45325.id139858.diff
No OneTemporary

D45325.id139858.diff

diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c
--- a/sys/riscv/riscv/machdep.c
+++ b/sys/riscv/riscv/machdep.c
@@ -549,10 +549,6 @@
cache_setup();
- /* Bootstrap enough of pmap to enter the kernel proper */
- kernlen = (lastaddr - KERNBASE);
- pmap_bootstrap(rvbp->kern_l1pt, rvbp->kern_phys, kernlen);
-
#ifdef FDT
/*
* XXX: Unconditionally exclude the lowest 2MB of physical memory, as
@@ -565,6 +561,11 @@
physmem_exclude_region(mem_regions[0].mr_start, L2_SIZE,
EXFLAG_NODUMP | EXFLAG_NOALLOC);
#endif
+
+ /* Bootstrap enough of pmap to enter the kernel proper */
+ kernlen = (lastaddr - KERNBASE);
+ pmap_bootstrap(rvbp->kern_l1pt, rvbp->kern_phys, kernlen);
+
physmem_init_kernel_globals();
/* Establish static device mappings */

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 11:04 AM (19 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14736747
Default Alt Text
D45325.id139858.diff (784 B)

Event Timeline