aboutsummaryrefslogtreecommitdiff
path: root/board/cortina
diff options
context:
space:
mode:
authorAndre Przywara2022-02-11 11:29:38 +0000
committerTom Rini2022-03-02 13:59:29 -0500
commitf660fe0bd3a8cfa7fc6271bbf27b1530e7348b85 (patch)
tree01d04927334a9a8870adb37ff47059c5f448223b /board/cortina
parent7ab2e47d27c93b3dd8e006fb2b0c762b171454cb (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