From owner-cvs-src@FreeBSD.ORG Tue May 22 19:46:44 2007 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F0F5916A400 for ; Tue, 22 May 2007 19:46:44 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.pkgsrc-box.org (www.ostsee-abc.de [62.206.222.50]) by mx1.freebsd.org (Postfix) with ESMTP id ACC5C13C458 for ; Tue, 22 May 2007 19:46:44 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (www.pkgsrc-box.org [127.0.0.1]) by www.pkgsrc-box.org (Postfix) with ESMTP id 7E321E7A3F9 for ; Tue, 22 May 2007 19:29:33 +0000 (UTC) Received: by britannica.bec.de (Postfix, from userid 1000) id BA6A97D3D; Tue, 22 May 2007 21:29:13 +0200 (CEST) Date: Tue, 22 May 2007 21:29:11 +0200 From: Joerg Sonnenberger To: cvs-src@freebsd.org Message-ID: <20070522192911.GA11446@britannica.bec.de> References: <13451.1179852986@critter.freebsd.dk> <20070522130612.A28780@fledge.watson.org> <20070523042117.G87260@besplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070523042117.G87260@besplex.bde.org> User-Agent: Mutt/1.5.13 (2006-08-11) Subject: Re: cvs commit: src/lib/libmemstat memstat_malloc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2007 19:46:45 -0000 On Wed, May 23, 2007 at 05:13:46AM +1000, Bruce Evans wrote: > Again, the type mismatches have very little to do with const. libkvm > requires kernel addresses to be represented as unsigned longs, while > libmemstat requires kernel addresses to be represented as "void *"s or > "const void *"s. Neither of these requirements is very good, and > libmemstat's requirement is a regression if anything, since the kernel > address space might be segmented or otherwise magic and thus unrepresentable > by userland pointers. Or more trivially, the kernel address space can be 64bit and the userland 32bit. But I guess that is something noone cared so far. PAE is another good example of why this is not as uncommon as it might seem. Joerg