Searched hist:e9062481824384f00299971f923fecf6b3668001 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/arm/net/ |
H A D | bpf_jit_32.c | diff e9062481824384f00299971f923fecf6b3668001 Sat Jan 13 05:35:15 CST 2018 Russell King <rmk+kernel@armlinux.org.uk> ARM: net: bpf: avoid 'bx' instruction on non-Thumb capable CPUs
Avoid the 'bx' instruction on CPUs that have no support for Thumb and thus do not implement this instruction by moving the generation of this opcode to a separate function that selects between:
bx reg
and
mov pc, reg
according to the capabilities of the CPU.
Fixes: 39c13c204bb1 ("arm: eBPF JIT compiler") Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
|