Index: head/sys/riscv/riscv/machdep.c =================================================================== --- head/sys/riscv/riscv/machdep.c +++ head/sys/riscv/riscv/machdep.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -897,6 +898,9 @@ /* 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();