]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
RISC-V: provide the correct value for kernstart
authorMitchell Horne <mhorne@FreeBSD.org>
Sun, 19 Apr 2020 00:34:49 +0000 (00:34 +0000)
committerMitchell Horne <mhorne@FreeBSD.org>
Sun, 19 Apr 2020 00:34:49 +0000 (00:34 +0000)
commit0d26dae5c34d4c23d9a7d9cf5d741af49ddae770
tree3d2701586c5e66663db48a746a9bfb0a513d310b
parentf2566be5cedd4da5564560d7613c99603ec51dda
RISC-V: provide the correct value for kernstart

pmap_bootstrap() expects the kernel's physical load address, but we have
been providing the start of physical memory. This had the nice effect of
protecting the memory used by the SBI runtime firmware, but now that we
have alternate means of achieving that, we should provide the correct
value. This will free up any memory between the SBI firmware and the
kernel for allocation.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D24156
sys/riscv/riscv/machdep.c