Date: Fri, 11 Oct 2019 16:28:46 +0000 (UTC) From: Philip Paeps <philip@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r353441 - head/sys/riscv/riscv Message-ID: <201910111628.x9BGSkWT074722@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910111628.x9BGSkWT074722>