summaryrefslogtreecommitdiffstats
path: root/arch/mips/net/bpf_jit.h
diff options
context:
space:
mode:
authorMarkos Chandras2015-06-04 12:56:11 +0200
committerRalf Baechle2015-06-21 21:54:22 +0200
commitad152bd69823fbca63fff9ac3fbe448251eef11b (patch)
tree57791f7eb566c2e0ab21456c287d141d2d8ec3d0 /arch/mips/net/bpf_jit.h
parentMIPS: Xtalk: Update xwidget.h with known Xtalk device numbers (diff)
downloadkernel-qcow2-linux-ad152bd69823fbca63fff9ac3fbe448251eef11b.tar.gz
kernel-qcow2-linux-ad152bd69823fbca63fff9ac3fbe448251eef11b.tar.xz
kernel-qcow2-linux-ad152bd69823fbca63fff9ac3fbe448251eef11b.zip
MIPS: BPF: Free up some callee-saved registers
Move the two scratch registers from s0 and s1 to t4 and t5 in order to free up some callee-saved registers. We will use these callee-saved registers to store some permanent data on them in a subsequent patch. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Cc: netdev@vger.kernel.org Cc: "David S. Miller" <davem@davemloft.net> Cc: Alexei Starovoitov <ast@plumgrid.com> Cc: Daniel Borkmann <dborkman@redhat.com> Cc: Hannes Frederic Sowa <hannes@stressinduktion.org> Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/10525/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/net/bpf_jit.h')
-rw-r--r--arch/mips/net/bpf_jit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/net/bpf_jit.h b/arch/mips/net/bpf_jit.h
index 3a5751b4335a..f9b5a4d3dbf4 100644
--- a/arch/mips/net/bpf_jit.h
+++ b/arch/mips/net/bpf_jit.h
@@ -18,6 +18,8 @@
#define MIPS_R_V1 3
#define MIPS_R_A0 4
#define MIPS_R_A1 5
+#define MIPS_R_T4 12
+#define MIPS_R_T5 13
#define MIPS_R_T6 14
#define MIPS_R_T7 15
#define MIPS_R_S0 16