From owner-svn-src-projects@FreeBSD.ORG Sat Feb 9 17:32:00 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A4B94293; Sat, 9 Feb 2013 17:32:00 +0000 (UTC) (envelope-from cherry@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 97813666; Sat, 9 Feb 2013 17:32:00 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r19HW04V011869; Sat, 9 Feb 2013 17:32:00 GMT (envelope-from cherry@svn.freebsd.org) Received: (from cherry@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r19HW0GJ011868; Sat, 9 Feb 2013 17:32:00 GMT (envelope-from cherry@svn.freebsd.org) Message-Id: <201302091732.r19HW0GJ011868@svn.freebsd.org> From: "Cherry G. Mathew" Date: Sat, 9 Feb 2013 17:32:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r246596 - projects/amd64_xen_pv/sys/amd64/xen X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2013 17:32:00 -0000 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); } /***************************************************