]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: Return vm_paddr_t in pmap_early_vtophys()
authorKristof Provost <kp@FreeBSD.org>
Wed, 17 Jul 2019 21:25:26 +0000 (21:25 +0000)
committerKristof Provost <kp@FreeBSD.org>
Wed, 17 Jul 2019 21:25:26 +0000 (21:25 +0000)
commitcd7795a5a4d4abc58cb5f33a6172f34f0c24fe03
tree1c6c1e152637f0c0988b3c64a560d2bf7e11e0b7
parent204498d7c27ef5e56e94d58204c528b106543777
riscv: Return vm_paddr_t in pmap_early_vtophys()

We can't use a u_int to compute the physical address in
pmap_early_vtophys(). Our int is 32-bit, but the physical address is
64-bit. This works fine if everything lives in below 0x100000000, but as
soon as it doesn't this breaks.

MFC after: 1 week
Sponsored by: Axiado
sys/riscv/riscv/pmap.c