linux/arch/arm/net
Russell King 124047a81e ARM: net: bpf: avoid 'bx' instruction on non-Thumb capable CPUs
commit e906248182 upstream.

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: 39c13c204b ("arm: eBPF JIT compiler")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2018-01-31 14:03:43 +01:00
..
bpf_jit_32.c ARM: net: bpf: avoid 'bx' instruction on non-Thumb capable CPUs 2018-01-31 14:03:43 +01:00
bpf_jit_32.h arm: eBPF JIT compiler 2017-08-22 09:26:43 -07:00
Makefile ARM: 7259/3: net: JIT compiler for packet filters 2012-03-24 09:38:56 +00:00