Author: philip Date: Fri Oct 11 16:28:46 2019 New Revision: 353441 URL: https://svnweb.freebsd.org/changeset/base/353441
Log: Call devmap_bootstrap in RISC-V machine dependent code to actually create the static device mappings. While RISC-V support was added to subr_devmap.c in r298631, it was never actually initialised in the machine dependent code. Submitted by: Nicholas O'Brien <nickisobrien_gmail.com> Reviewed by: br, kp Sponsored by: Axiado Differential Revision: https://reviews.freebsd.org/D21975 Modified: head/sys/riscv/riscv/machdep.c Modified: head/sys/riscv/riscv/machdep.c ============================================================================== --- head/sys/riscv/riscv/machdep.c Fri Oct 11 16:01:30 2019 (r353440) +++ head/sys/riscv/riscv/machdep.c Fri Oct 11 16:28:46 2019 (r353441) @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include <sys/bus.h> #include <sys/cons.h> #include <sys/cpu.h> +#include <sys/devmap.h> #include <sys/exec.h> #include <sys/imgact.h> #include <sys/kdb.h> @@ -897,6 +898,9 @@ initriscv(struct riscv_bootparams *rvbp) /* Bootstrap enough of pmap to enter the kernel proper */ kernlen = (lastaddr - KERNBASE); pmap_bootstrap(rvbp->kern_l1pt, mem_regions[0].mr_start, kernlen); + + /* Establish static device mappings */ + devmap_bootstrap(0, NULL); cninit(); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"