From: Marcel Ziswiler Date: Thu, 13 Aug 2015 09:52:35 +0200 Subject: [U-Boot] [U-Boot, RESEND, v5] mtd/nand/ubi: assortment of alignment fixes In-Reply-To: <20150812194318.GP25532@bill-the-cat> References: <20150812194318.GP25532@bill-the-cat> Message-ID: <1439452355.3530.13.camel@ziswiler.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 2015-08-12 at 15:43 -0400, Tom Rini wrote: > On Wed, Aug 05, 2015 at 05:17:04PM +0200, Marcel Ziswiler wrote: > > > From: Marcel Ziswiler > > > > Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take > > buffer > > alignment into account which led to failures of the following form: > > > > ERROR: v7_dcache_inval_range - start address is not aligned - > > 0x1f7f0108 > > ERROR: v7_dcache_inval_range - stop address is not aligned - > > 0x1f7f1108 > > > > Signed-off-by: Marcel Ziswiler > > Reviewed-by: Simon Glass > > Acked-by: Scott Wood > > This change causes a huge number of boards to fail to build due to > some > hidden #define games. The actual error message doesn't provide > helpful > context but building for say "spear300" will show the problem. Uups, I see your point. I guess one should not include regular header files like malloc.h in assembler .S files (;-p). I will send a v6 which will wrap my wrapper in __ASSEMBLY__ which fixes this. > Thanks! You are very welcome.