From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Date: Tue, 23 Sep 2003 19:16:33 +0000 Subject: Re: NS83820 2.6.0-test5 driver seems unstable on IA64 Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-ia64@vger.kernel.org "David S. Miller" writes: > On Tue, 23 Sep 2003 21:09:47 +0200 > Andreas Schwab wrote: > >> The compiler is allowed to take advantage that there are no unaligned >> accesses. You need to use compiler extensions (like attribute packed) to >> stop it from doing this. > > That's correct, and if the address is misaligned the cpu "traps" > and the kernel fixes up the load/store access to fix it up. Or the compiler generates code to take advantage of the fact that the lower address bits are zero. > That's what we're talking about here. Of course, the kernel language is not ISO C, and never will be. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N=FCrnberg Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."