Skip to content
Commit d54e81f9 authored by Will Deacon's avatar Will Deacon
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>
parent 44b82b77
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment