From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 2 Jan 2009 05:16:46 -0500 Subject: [U-Boot] [PATCH] fat: fix unaligned errors In-Reply-To: <3efb10970901020132t342ea5d3xda8763411d6ed173@mail.gmail.com> References: <1230857672-11798-1-git-send-email-vapier@gentoo.org> <3efb10970901020132t342ea5d3xda8763411d6ed173@mail.gmail.com> Message-ID: <200901020516.47724.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 02 January 2009 04:32:39 Remy Bohmer wrote: > 2009/1/2 Mike Frysinger : > > From: Bryan Wu > > A couple of buffers in the fat code are declared as an array of bytes. > > But it is then cast up to a structure with 16bit and 32bit members. > > Since GCC assumes structure alignment here, we have to force the buffers > > to be aligned according to the structure usage. > > Just curious (because before the Christmas holidays I was also > debugging some FAT problems, and maybe this is related) > What problem/symptoms does this patch fix? How did the bug show itself? i think should cover all your questions ... http://blackfin.uclinux.org/gf/tracker/4765 -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20090102/19a9146d/attachment.pgp