summaryrefslogtreecommitdiff
path: root/rust/kernel/ptr/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAbhishek Dubey <adubey@linux.ibm.com>2026-04-01 11:21:32 -0400
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-04-03 14:14:25 +0530
commita32325c0e623d594992c4e4616fa685c0e765a33 (patch)
tree791f248ab3ee9430eab566def9395a7a5053e055 /rust/kernel/ptr/git@git.tavy.me:linux.git
parent66cad93ad325b332868c062bbd0de65ca4e59657 (diff)
powerpc64/bpf: Add support for indirect jump
Add support for a new instruction BPF_JMP|BPF_X|BPF_JA, SRC=0, DST=Rx, off=0, imm=0 which does an indirect jump to a location stored in Rx. The register Rx should have type PTR_TO_INSN. This new type ensures that the Rx register contains a value (or a range of values) loaded from a correct jump table – map of type instruction array. Support indirect jump to all registers in powerpc64 JIT using the ctr register. Move Rx content to ctr register, then invoke bctr instruction to branch to address stored in ctr register. Skip save and restore of TOC as the jump is always within the program context. Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com> Acked-by: Hari Bathini <hbathini@linux.ibm.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260401152133.42544-4-adubey@linux.ibm.com
Diffstat (limited to 'rust/kernel/ptr/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions