diff options
author | Andre Przywara | 2022-02-11 11:29:38 +0000 |
---|---|---|
committer | Tom Rini | 2022-03-02 13:59:29 -0500 |
commit | f660fe0bd3a8cfa7fc6271bbf27b1530e7348b85 (patch) | |
tree | 01d04927334a9a8870adb37ff47059c5f448223b /board/cortina | |
parent | 7ab2e47d27c93b3dd8e006fb2b0c762b171454cb (diff) |
armv8: Simplify switch_el macro
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@arm.com>
Diffstat (limited to 'board/cortina')
0 files changed, 0 insertions, 0 deletions