aboutsummaryrefslogtreecommitdiff
path: root/sys/riscv
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2019-07-17 21:25:26 +0000
committerKristof Provost <kp@FreeBSD.org>2019-07-17 21:25:26 +0000
commitcd7795a5a4d4abc58cb5f33a6172f34f0c24fe03 (patch)
tree1c6c1e152637f0c0988b3c64a560d2bf7e11e0b7 /sys/riscv
parent204498d7c27ef5e56e94d58204c528b106543777 (diff)
downloadsrc-cd7795a5a4d4abc58cb5f33a6172f34f0c24fe03.tar.gz
src-cd7795a5a4d4abc58cb5f33a6172f34f0c24fe03.zip
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
Notes
Notes: svn path=/head/; revision=350095
Diffstat (limited to 'sys/riscv')
-rw-r--r--sys/riscv/riscv/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c
index b86ee3a99fb9..de3e70656a6d 100644
--- a/sys/riscv/riscv/pmap.c
+++ b/sys/riscv/riscv/pmap.c
@@ -464,7 +464,7 @@ pmap_early_vtophys(vm_offset_t l1pt, vm_offset_t va)
{
u_int l1_slot, l2_slot;
pt_entry_t *l2;
- u_int ret;
+ vm_paddr_t ret;
l2 = pmap_early_page_idx(l1pt, va, &l1_slot, &l2_slot);