arm64: entry: avoid writing lr explicitly for constructing return paths
authorWill Deacon <will.deacon@arm.com>
Mon, 29 Sep 2014 10:44:01 +0000 (11:44 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 14 Nov 2014 10:42:15 +0000 (10:42 +0000)
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: Will Deacon <will.deacon@arm.com>

No differences found