Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Feb 2013 17:32:00 +0000 (UTC)
From:      "Cherry G. Mathew" <cherry@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r246596 - projects/amd64_xen_pv/sys/amd64/xen
Message-ID:  <201302091732.r19HW0GJ011868@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cherry
Date: Sat Feb  9 17:32:00 2013
New Revision: 246596
URL: http://svnweb.freebsd.org/changeset/base/246596

Log:
  Remove misleading "Sign unmasking" from ma calculation.
  
  Approved by: gibbs (implicit)

Modified:
  projects/amd64_xen_pv/sys/amd64/xen/pmap.c

Modified: projects/amd64_xen_pv/sys/amd64/xen/pmap.c
==============================================================================
--- projects/amd64_xen_pv/sys/amd64/xen/pmap.c	Sat Feb  9 17:26:14 2013	(r246595)
+++ projects/amd64_xen_pv/sys/amd64/xen/pmap.c	Sat Feb  9 17:32:00 2013	(r246596)
@@ -957,9 +957,6 @@ pmap_kextract_ma(vm_offset_t va)
 			 * effectively const.
 			 */
 
-	const uint64_t SIGNMASK = (1UL << 48) - 1;
-	va &= SIGNMASK; /* Remove sign extension */
-
 	mmu_map_t tptr = tbuf;
 
 	struct mmu_map_mbackend mb = {
@@ -980,7 +977,7 @@ pmap_kextract_ma(vm_offset_t va)
 	mmu_map_t_fini(tptr);
 
 nomapping:
-	return (ma & PG_FRAME) | (va & ~PG_FRAME);
+	return (ma & PG_FRAME) | (va & PAGE_MASK);
 }
 
 /***************************************************



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