Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2019 11:34:11 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r350277 - stable/12/sys/riscv/riscv
Message-ID:  <201907241134.x6OBYBrM029135@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Wed Jul 24 11:34:10 2019
New Revision: 350277
URL: https://svnweb.freebsd.org/changeset/base/350277

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/12/sys/riscv/riscv/pmap.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/riscv/riscv/pmap.c
==============================================================================
--- stable/12/sys/riscv/riscv/pmap.c	Wed Jul 24 11:34:09 2019	(r350276)
+++ stable/12/sys/riscv/riscv/pmap.c	Wed Jul 24 11:34:10 2019	(r350277)
@@ -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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907241134.x6OBYBrM029135>