From owner-freebsd-arch@FreeBSD.ORG Thu Aug 12 19:56:55 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 941071065693; Thu, 12 Aug 2010 19:56:55 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 312EA8FC0A; Thu, 12 Aug 2010 19:56:55 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 3AAB82A28CE3; Thu, 12 Aug 2010 21:56:54 +0200 (CEST) Date: Thu, 12 Aug 2010 21:56:54 +0200 From: Ed Schouten To: mdf@FreeBSD.org Message-ID: <20100812195654.GB2978@hoeg.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7iMSBzlTiPOCCT2k" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-arch@freebsd.org Subject: Re: RFC: replace vm_offset_t with uintptr_t and vm_size_t with size_t X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2010 19:56:55 -0000 --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Matthew, * mdf@FreeBSD.org wrote: > Looking over the arch-specific definitions, using uintptr_t and size_t > would not affect the actual width of these sizes. However, it would > simplify e.g. conformant printf(9) statements, since there is an > approved specifier for size_t and, while there isn't one for > uintptr_t, ptrdiff_t is pretty close (Bruce, is there a better > specifier)? Not that I know any architecture we support which does this, but what happens if userspace has a larger address space than kernelspace? Say, we ever have some kind of architecture with a 32-bit kernel running 64-bit userspace applications. --=20 Ed Schouten WWW: http://80386.nl/ --7iMSBzlTiPOCCT2k Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkxkUgYACgkQ52SDGA2eCwV55ACeNavLAwupiKUZa/1IUxlmUZq+ YBIAnjLcRCsPKYC33kUVcAhl5wqy51KR =sEuH -----END PGP SIGNATURE----- --7iMSBzlTiPOCCT2k--