[PATCH v2 5/6] armv8: Simplify switch_el macro

Tom Rini trini at konsulko.com
Wed Mar 2 23:41:32 CET 2022


On Fri, Feb 11, 2022 at 11:29:38AM +0000, Andre Przywara wrote:

> The switch_el macro is a neat contraption to handle cases where we need
> different code depending on the current exception level, but its
> implementation was longer than needed.
> 
> Simplify it by doing just one comparison, then using the different
> condition codes to branch to the desired target. PState.CurrentEL just
> holds two bits, and since we don't care about EL0, we can use >, =, < to
> select EL3, EL2 and EL1, respectively.
> 
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220302/1490efe3/attachment.sig>


More information about the U-Boot mailing list