ARM: entry: avoid 'badr' for setting the link register

Setting the link register directly before performing a jump instruction
is not equivalent to using the bl instruction: this bypasses the
return stack, which results in the wrong return path to be predicted,
hurting performance. So let's switch to ordinary bl sequences where
we can.

Signed-off-by: Ard Biesheuvel <>
1 file changed