svn commit: r350276 - stable/11/sys/riscv/riscv

Kristof Provost kp at FreeBSD.org
Wed Jul 24 11:34:10 UTC 2019


Author: kp
Date: Wed Jul 24 11:34:09 2019
New Revision: 350276
URL: https://svnweb.freebsd.org/changeset/base/350276

Log:
  MFC r350095:
  
  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 below 0x100000000, but as
  soon as it doesn't this breaks.
  
  Sponsored by:	Axiado

Modified:
  stable/11/sys/riscv/riscv/pmap.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/riscv/riscv/pmap.c
==============================================================================
--- stable/11/sys/riscv/riscv/pmap.c	Wed Jul 24 08:00:00 2019	(r350275)
+++ stable/11/sys/riscv/riscv/pmap.c	Wed Jul 24 11:34:09 2019	(r350276)
@@ -457,7 +457,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);
 


More information about the svn-src-stable-11 mailing list