Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec9a70fc authored by Will Deacon's avatar Will Deacon Committed by Daniel Kurtz
Browse files

arm64: entry: avoid writing lr explicitly for constructing return paths



Using an explicit adr instruction to set the link register to point at
ret_fast_syscall/ret_to_user can defeat branch and return stack predictors.

Instead, use the standard calling instructions (bl, blr) and have an
unconditional branch as the following instruction.

Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
(cherry picked from commit d54e81f9af1d106e47ae8594903c43a80dae1a99)
Signed-off-by: default avatarDaniel Kurtz <djkurtz@google.com>
parent 063ee96a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment