From: Ian Campbell Date: Mon, 21 Jul 2014 19:31:45 +0100 Subject: [U-Boot] [PATCH 1/2] sunxi: Use Thumb2 and move stack to gain more SRAM space in FEL mode In-Reply-To: <1405703385-14580-2-git-send-email-siarhei.siamashka@gmail.com> References: <1405703385-14580-1-git-send-email-siarhei.siamashka@gmail.com> <1405703385-14580-2-git-send-email-siarhei.siamashka@gmail.com> Message-ID: <1405967505.27009.58.camel@dagon.hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2014-07-18 at 20:09 +0300, Siarhei Siamashka wrote: > > http://lists.phcomp.co.uk/pipermail/arm-netbook/2012-June/004341.html I think a better reference is https://github.com/hno/Allwinner-Info/blob/master/FEL-usb/USB-protocol.txt > +.syntax unified > +.text > +.arm > +.arch armv7a > +.p2align 2 > + > +.globl _start_fel Is there any reason not to use ENTRY() for this? > +.globl s_init > +.globl __bss_start > +.globl __bss_end I don't think you need .globl to access external symbols, all .globl does is control the visibility of things defined in this file. IOW you can drop all 3 of these AFAICT. [...] > + /* Pass control to the 's_init()' function */ > + b s_init Since this code is in arm mode and s_init will, I think, be in Thumb mode after this patch shouldn't this be a bx? Ian.