Author: kp
Date: Wed Jul 17 21:25:26 2019
New Revision: 350095
URL: https://svnweb.freebsd.org/changeset/base/350095

Log:
  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

Modified:
  head/sys/riscv/riscv/pmap.c

Modified: head/sys/riscv/riscv/pmap.c
==============================================================================
--- head/sys/riscv/riscv/pmap.c Wed Jul 17 20:43:14 2019        (r350094)
+++ head/sys/riscv/riscv/pmap.c Wed Jul 17 21:25:26 2019        (r350095)
@@ -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);
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to