summaryrefslogtreecommitdiff
path: root/arch/arm/net/bpf_jit_32.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dxchgb@gmail.com>2012-11-07 19:28:28 +0400
committerDavid S. Miller <davem@davemloft.net>2012-11-14 03:21:10 +0400
commit3cbe20412ef4656169e09ea40ec47f973ad99a92 (patch)
treeba2c9581a170933dc4a65ffe9bde5847bd10e966 /arch/arm/net/bpf_jit_32.h
parent910cc727bf5cba11ce51be86fa2fb2454b10f3d9 (diff)
downloadlinux-3cbe20412ef4656169e09ea40ec47f973ad99a92.tar.xz
ARM: net: bpf_jit_32: add XOR instruction for BPF JIT
This patch is a follow-up for patch "filter: add XOR instruction for use with X/K" that implements BPF ARM JIT parts for the BPF XOR operation. Signed-off-by: Daniel Borkmann <daniel.borkmann@tik.ee.ethz.ch> Cc: Mircea Gherzan <mgherzan@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de> Acked-by: Mircea Gherzan <mgherzan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm/net/bpf_jit_32.h')
-rw-r--r--arch/arm/net/bpf_jit_32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/net/bpf_jit_32.h b/arch/arm/net/bpf_jit_32.h
index 7fa2f7d3cb90..afb84621ff6f 100644
--- a/arch/arm/net/bpf_jit_32.h
+++ b/arch/arm/net/bpf_jit_32.h
@@ -69,6 +69,7 @@
#define ARM_INST_CMP_I 0x03500000
#define ARM_INST_EOR_R 0x00200000
+#define ARM_INST_EOR_I 0x02200000
#define ARM_INST_LDRB_I 0x05d00000
#define ARM_INST_LDRB_R 0x07d00000
@@ -135,6 +136,7 @@
#define ARM_CMP_I(rn, imm) _AL3_I(ARM_INST_CMP, 0, rn, imm)
#define ARM_EOR_R(rd, rn, rm) _AL3_R(ARM_INST_EOR, rd, rn, rm)
+#define ARM_EOR_I(rd, rn, imm) _AL3_I(ARM_INST_EOR, rd, rn, imm)
#define ARM_LDR_I(rt, rn, off) (ARM_INST_LDR_I | (rt) << 12 | (rn) << 16 \
| (off))