Changeset View
Changeset View
Standalone View
Standalone View
head/sys/riscv/riscv/machdep.c
Show First 20 Lines • Show All 845 Lines • ▼ Show 20 Lines | #endif | ||||
/* Do basic tuning, hz etc */ | /* Do basic tuning, hz etc */ | ||||
init_param1(); | init_param1(); | ||||
cache_setup(); | cache_setup(); | ||||
/* Bootstrap enough of pmap to enter the kernel proper */ | /* Bootstrap enough of pmap to enter the kernel proper */ | ||||
kernlen = (lastaddr - KERNBASE); | kernlen = (lastaddr - KERNBASE); | ||||
pmap_bootstrap(rvbp->kern_l1pt, mem_regions[0].mr_start, kernlen); | pmap_bootstrap(rvbp->kern_l1pt, rvbp->kern_phys, kernlen); | ||||
#ifdef FDT | #ifdef FDT | ||||
/* | /* | ||||
* XXX: Exclude the lowest 2MB of physical memory, if it hasn't been | * XXX: Exclude the lowest 2MB of physical memory, if it hasn't been | ||||
* already, as this area is assumed to contain the SBI firmware. This | * already, as this area is assumed to contain the SBI firmware. This | ||||
* is a little fragile, but it is consistent with the platforms we | * is a little fragile, but it is consistent with the platforms we | ||||
* support so far. | * support so far. | ||||
* | * | ||||
Show All 40 Lines |