From owner-freebsd-current@FreeBSD.ORG Thu Nov 4 06:05:46 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40726106566B; Thu, 4 Nov 2010 06:05:46 +0000 (UTC) (envelope-from alc@rice.edu) Received: from mh6.mail.rice.edu (mh6.mail.rice.edu [128.42.201.4]) by mx1.freebsd.org (Postfix) with ESMTP id 1501A8FC1B; Thu, 4 Nov 2010 06:05:45 +0000 (UTC) Received: from mh6.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh6.mail.rice.edu (Postfix) with ESMTP id DDC2828F799; Thu, 4 Nov 2010 01:05:44 -0500 (CDT) X-Virus-Scanned: by amavis-2.6.4 at mh6.mail.rice.edu, auth channel Received: from mh6.mail.rice.edu ([127.0.0.1]) by mh6.mail.rice.edu (mh6.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id 2cLMaW4cn6q0; Thu, 4 Nov 2010 01:05:44 -0500 (CDT) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: alc) by mh6.mail.rice.edu (Postfix) with ESMTPSA id 5302C28F797; Thu, 4 Nov 2010 01:05:44 -0500 (CDT) Message-ID: <4CD24D37.5060701@rice.edu> Date: Thu, 04 Nov 2010 01:05:43 -0500 From: Alan Cox User-Agent: Thunderbird 2.0.0.24 (X11/20100725) MIME-Version: 1.0 To: Andriy Gapon References: <4CA0DA49.2090006@freebsd.org> <4CA3A48A.5070300@freebsd.org> <4CA3BD1E.5070807@rice.edu> <4CA5911E.3000101@freebsd.org> <4CAE0060.7050607@freebsd.org> <4CAECC4D.90707@rice.edu> <4CD1AA45.7000504@freebsd.org> <4CD1AD80.2090903@rice.edu> <4CD1B02E.2070708@freebsd.org> In-Reply-To: <4CD1B02E.2070708@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 04 Nov 2010 09:04:48 +0000 Cc: Alan Cox , freebsd-current@freebsd.org Subject: Re: minidump size on amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Nov 2010 06:05:46 -0000 Andriy Gapon wrote: > on 03/11/2010 20:44 Alan Cox said the following: > [snip] > > Thank you for the confirmation! > > >> Andriy Gapon wrote: >> >>> P.S. is there a macro for extracting frame address from PDPE? >>> >> To a lower level page table page or to a 1GB physical page? For the latter, you >> can use PG_PS_FRAME. >> > > To a 1GB page. > I see in the architecture manual that the lower bits are marked as MBZ, so this > macro should work. Actually, it seems that even PG_FRAME should work in place of > PG_PS_FRAME for exactly the same reason (MBZ) on amd64. > There is actually a point to using PG_PS_FRAME. The PAT bit for a 2MB page mapping occupies a bit that is a part of the physical page number with PG_FRAME. I suspect that the same is true of 1GB page mappings, but I haven't double checked the manual. Alan