]> git.baikalelectronics.ru Git - uboot.git/commit
armv8: Reduce exception handling code
authorAndre Przywara <andre.przywara@arm.com>
Tue, 24 Jul 2018 23:57:00 +0000 (00:57 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 3 Aug 2018 23:53:54 +0000 (19:53 -0400)
commitd2ad49af757437cdd816bb7550656b210020710e
tree30aee9deccd71a9ce36e5757eac5d793438c2784
parent7eda5a0f670259330d05cb8b108d17b70551365e
armv8: Reduce exception handling code

The arm64 exception handling code is quite big, mostly due to
architectural alignment requirements. Each exception entry spans 32
instructions, which sounds generous, but is too small to fit all of the
save/branch/restore code in there. So at the moment we use only four
instructions, branching into shared save and restore routines.
To not leave the space for those remaining 28 instructions wasted, let's
split the save and restore routines and stuff them into the gaps.
This saves about 250 bytes of code, which is helpful for those tight
SPLs.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/cpu/armv8/exceptions.S