Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2013 22:00:03 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>, freebsd-wireless@freebsd.org, Hans Petter Selasky <hans.petter.selasky@bitfrost.no>
Subject:   Re: My WLI-UC-GNM up crash
Message-ID:  <20130729190003.GP4972@kib.kiev.ua>
In-Reply-To: <3571E4A7-D153-448E-A234-302C9C5603E9@bsdimp.com>
References:  <cakrd9exvuqeqz=3ntmh7k3e4_6fjw9jph_tpfchujhqhwwbzsg@mail.gmail.com> <zarafa.51f6ad45.7961.536131947b8b1205@mail.lockless.no> <3571E4A7-D153-448E-A234-302C9C5603E9@bsdimp.com>

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

--9DptZICXTlJ7FQ09
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 29, 2013 at 12:34:00PM -0600, Warner Losh wrote:
>=20
> On Jul 29, 2013, at 11:58 AM, Hans Petter Selasky wrote:
>=20
> > The aligned will make sure that the structure gets padded properly to t=
he size specified. Only on ARM/MIPS etc, structures get automatically align=
ed according to the element in the structure requiring the greatest alignme=
nt.
>=20
> I'd turn this around and say only on x86 do structures not get aligned th=
is way. On any riscy architecture, unaligned accesses are expensive, which =
is why the ABI there mandates this.
>=20
The alignment of the structure to the largest alignment of the member is
required by the ABIs on i386 and amd64 as well.

--9DptZICXTlJ7FQ09
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iQIcBAEBAgAGBQJR9ruyAAoJEJDCuSvBvK1B2OUQAKYEH7zcCVXK+9U4FBXwJHJc
qvtKSL3WGoevcYmf3YWSJ0nlQahEv5eP+q5VHQXdoKykHzhhVhNuKAOSZ3Eyv6Lj
Pr/05y0f6uiF9lrbDDjv7g2+dqBP+oWFkLl5bmRESyAaivEtDmn9ST3Xun+YUyEA
Qqxg4ye/fU83juWIHPifY6VHp/BZ7TqSIn9HGWXu38Rdi7QkZFgXrWXmWrKJ+59X
IvmUdT6UF0BxGiqnYrKRMxKEHYHeNbU+MgUL1r+6AuzT2yG8rMaONm1UADjvMm6d
jq77QSc20W1sbm5pYv1ZnwUi3QgttywDJqIXOB8o4J04XUt6fybVnubCHr1PzrHL
TKV038Zc5EUZBhfEZQDdUvrJf38VRNr2AFdjgqMRu//Wz9KPTCmvxKPLMsL+DEPL
y+qXcY3VCyYtbnE5aJIg5bW1LvSAjbXVUzMFho0AZlChIrXxG0VBwR0guPVITzBu
A6/XBAd6idMlz4Umg8QffXkaQv0rU23EZXoAo7J7IJsUqPb+Z04lC4S0/dohqFJW
kvYvSHBc210d3ufmQoUY/5gpH4Be+cOgW4xnbLL73LkH+GhywyY4Cg+cbwuKd6kl
QhW3rzFs7TTMn0a9hILTOxAmooDu3S93EqSQ4+lGTrHTD4TEdjDq/9PbXPsb6WP6
CQTfviFDirW97Cnp9Xx0
=Rrlz
-----END PGP SIGNATURE-----

--9DptZICXTlJ7FQ09--



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