Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2007 21:29:11 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        cvs-src@freebsd.org
Subject:   Re: cvs commit: src/lib/libmemstat memstat_malloc.c
Message-ID:  <20070522192911.GA11446@britannica.bec.de>
In-Reply-To: <20070523042117.G87260@besplex.bde.org>
References:  <13451.1179852986@critter.freebsd.dk> <20070522130612.A28780@fledge.watson.org> <20070523042117.G87260@besplex.bde.org>

index | next in thread | previous in thread | raw e-mail

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


home | help

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