From owner-svn-src-head@FreeBSD.ORG Fri May 29 20:35:48 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 897ADDF1; Fri, 29 May 2015 20:35:48 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 64B7319CE; Fri, 29 May 2015 20:35:48 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id AB47B5A9F25; Fri, 29 May 2015 20:35:46 +0000 (UTC) Date: Fri, 29 May 2015 20:35:46 +0000 From: Brooks Davis To: Bruce Evans Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r283671 - head/sys/sys Message-ID: <20150529203546.GN38480@spindle.one-eyed-alien.net> References: <201505282206.t4SM66Xj090527@svn.freebsd.org> <20150529154745.F900@besplex.bde.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iJXiJc/TAIT2rh2r" Content-Disposition: inline In-Reply-To: <20150529154745.F900@besplex.bde.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2015 20:35:48 -0000 --iJXiJc/TAIT2rh2r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 29, 2015 at 05:40:16PM +1000, Bruce Evans wrote: > On Thu, 28 May 2015, Brooks Davis wrote: >=20 > > Log: > > Revert r102953 > > > > The bitfile padding was always unallocated on real-world FreeBSD syste= ms and > > depended on the assumption that (abs(sizeof(long) - sizeof(char*)) <= =3D 32). >=20 > Actually, it was bit-field padding that depended on the assumption that > (abs(sizeof(long) - sizeof(char*)) <=3D CHAR_BIT * sizeof(int). >=20 > It did work under this assumption, and was needed on non-real-world FreeB= SD > systems with correctly-sized longs. Why break it? It doesn't work on CHERI where pointers are 64, 128 or 256 bits depending on the compilation mode and hardware type (in the latter two cases they are not arithmetic types). If this was something we were worried about in practice, forcing the alignment of n_name and n_type to max(sizeof(long), sizeof(char *)) would accomplish the padding in a way that works for any compiler we care about and irrespective of size. -- Brooks --iJXiJc/TAIT2rh2r Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVaM2iAAoJEKzQXbSebgfA4mYH/2ZDRkoi6tbeAdahDWWkcx7F gHRWvtfIHbxpnGTyC8KouDTh3ELY3Rl24jpQIY2iGqNuI7yc7I77w1yDIgmnbrBX bOM2tChfD9oL9DFN5OTc5rHocgu6lyZxrAPJeKNycQnEsfzkSHr2SPui6mu2gYDQ cHSFlpvT+hU2PqSyPNPwS5G5Sq/Jh8ByFhHNgMIE/qeo6WTT6MPtctybCZCBFBSi Mx0wHwpLgoDDLkp1ZBiKfwAJqdh9m3IBLixYUVpVEKBRIaVkSlMOITRoM3OKKyPs LtCkzGzIqVR5qwfQeP1w+0P4lBfo5QNNQojQL1CaJmzaELTVl7bKXm+LfunDZZc= =sFYM -----END PGP SIGNATURE----- --iJXiJc/TAIT2rh2r--