From: Tom Rini Date: Fri, 9 Jan 2015 10:24:43 -0500 Subject: [U-Boot] [U-Boot, v3] arm: build arch memset/memcpy in Thumb2 mode In-Reply-To: <1418922633-1617-1-git-send-email-stefan@agner.ch> References: <1418922633-1617-1-git-send-email-stefan@agner.ch> Message-ID: <20150109152443.GG10826@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Dec 18, 2014 at 06:10:33PM +0100, Stefan Agner wrote: > Resynchronize memcpy/memset with kernel 3.17 and build them in > Thumb2 mode (unified syntax). Those assembler files can be built > and linked in ARM mode too, however when calling them from Thumb2 > built code, the stack got corrupted and the copy did not succeed > (the exact details have not been traced back). However, the Linux > kernel builds those files in Thumb2 mode. Hence U-Boot should > build them in Thumb2 mode too when CONFIG_SYS_THUMB_BUILD is set. > > To build the files without warning, some assembler instructions > had to be replaced with their UAL compliant variant (thanks > Jeroen for this input). > > To build the file in Thumb2 mode the implicit-it=always option need > to be set to generate Thumb2 compliant IT instructions where needed. > We add this option to the general AFLAGS when building for Thumb2. > > Reviewed-by: Simon Glass > Tested-by: Simon Glass > Signed-off-by: Stefan Agner Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: