From: Ian Campbell Date: Fri, 25 Jul 2014 07:56:23 +0100 Subject: [U-Boot] [PATCH 1/2] sunxi: Use Thumb2 and move stack to gain more SRAM space in FEL mode In-Reply-To: <20140725040143.30fc3eb9@i7> References: <1405703385-14580-1-git-send-email-siarhei.siamashka@gmail.com> <1405703385-14580-2-git-send-email-siarhei.siamashka@gmail.com> <1405967505.27009.58.camel@dagon.hellion.org.uk> <20140725040143.30fc3eb9@i7> Message-ID: <1406271383.29480.42.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-25 at 04:01 +0300, Siarhei Siamashka wrote: > On Mon, 21 Jul 2014 19:31:45 +0100 > Ian Campbell wrote: > > > 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 > > Yes, very likely. Except that I'm a little bit concerned about the > long term availability of this link (which is a personal repository > on github). > > I have quoted the relevant parts of the memory map information in the > commit message. But now I wonder if we should replicate the Allwinner > FEL mode memory map information somewhere in the u-boot documentation? Or move it to the sunxi wiki? > > [...] > > > + /* 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? > > Since this branch instruction refers to an external symbol, the linker > has all the necessary information and takes care of handling Thumb > interworking whenever it is necessary. OK.