Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102981465
D45325.id139858.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
784 B
Referenced Files
None
Subscribers
None
D45325.id139858.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D45325: riscv: adjust physmem reservation
Attached
Detach File
Event Timeline
Log In to Comment