diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-03-27 13:09:22 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-03-30 11:03:43 +0100 |
commit | fef7f2b2010381c795ae43743ad31931cc58f5ad (patch) | |
tree | b8f144d8646b22385f3e5ff603749cd26eb09703 /arch/arm64/kernel/Makefile | |
parent | 0978fb25f86b7595821cee6955679250d47c6438 (diff) | |
download | blackbird-op-linux-fef7f2b2010381c795ae43743ad31931cc58f5ad.tar.gz blackbird-op-linux-fef7f2b2010381c795ae43743ad31931cc58f5ad.zip |
arm64: alternative: Allow immediate branch as alternative instruction
Since all immediate branches are PC-relative on Aarch64, these
instructions cannot be used as an alternative with the simplistic
approach we currently have (the immediate has been computed from
the .altinstr_replacement section, and end-up being completely off
if we insert it directly).
This patch handles the b and bl instructions in a different way,
using the insn framework to recompute the immediate, and generate
the right displacement.
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/Makefile')
0 files changed, 0 insertions, 0 deletions