summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2017-11-27 00:47:09 +0000
committerTom Rini <trini@konsulko.com>2017-12-04 09:59:02 -0500
commit78ad457b2dbd0fe6cdc7ea42a69774a72ed007b9 (patch)
tree01f9799164ebc662da9d956fdc643219e6306c00 /lib
parent8993056fb3d4af4f0cd078df20130d4e7c35c2f7 (diff)
armv8: shrink exception table code
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@arm.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions