From: Markos Chandras Date: Thu, 4 Jun 2015 10:56:15 +0000 (+0100) Subject: MIPS: BPF: Use BPF register names to describe the ABI X-Git-Tag: v5.15~15539^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beaf70b8b7d025e7293ac013b198fc550ee2d3ec;p=platform%2Fkernel%2Flinux-starfive.git MIPS: BPF: Use BPF register names to describe the ABI Use the BPF register names instead of the arch register names to document how the ABI is structured. Signed-off-by: Markos Chandras Cc: netdev@vger.kernel.org Cc: "David S. Miller" Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Hannes Frederic Sowa Cc: linux-kernel@vger.kernel.org Patchwork: http://patchwork.linux-mips.org/patch/10529/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/net/bpf_jit.c b/arch/mips/net/bpf_jit.c index 954df29..f0db4f8 100644 --- a/arch/mips/net/bpf_jit.c +++ b/arch/mips/net/bpf_jit.c @@ -30,10 +30,10 @@ /* ABI * - * s3 BPF register A - * s4 BPF register X - * s5 *skb - * s6 *scratch memory + * r_A BPF register A + * r_X BPF register X + * r_skb *skb + * r_M *scratch memory * * On entry (*bpf_func)(*skb, *filter) * a0 = MIPS_R_A0 = skb;