From: Tom Rini Date: Mon, 4 Dec 2017 13:36:04 -0500 Subject: [U-Boot] armv8: shrink exception table code In-Reply-To: <20171127004709.14936-1-andre.przywara@arm.com> References: <20171127004709.14936-1-andre.przywara@arm.com> Message-ID: <20171204183604.GQ3587@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 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 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: