[U-Boot] armv8: shrink exception table code

Tom Rini trini at konsulko.com
Mon Dec 4 18:36:04 UTC 2017


On Mon, Nov 27, 2017 at 12:47:09AM +0000, Andre Przywara wrote:

> In the moment our exception entry code needs 34 instructions, so we
> can't use put it directly into the table entry, which offers "only"
> 32 instructions there. Right now we just put an unconditional branch
> there, then use a macro to place the 34 instructions *per entry* after
> that. That effectivly doubles the size of our exception table, which
> is quite a waste, given that we use it mostly for debugging purposes.
> 
> Since the register saving part is actually identical, let's just convert
> that macro into a function, and "bl" into it directly from the exception
> slot, of course after having saved at least the original LR.
> This saves us about 950 bytes of code, which is quite a relief for some
> tight SPLs, in particular the 64-bit Allwinner ones.
> 
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171204/72d816ca/attachment.sig>


More information about the U-Boot mailing list