aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/net/bpf_jit_comp.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-04-17 16:08:29 -0400
committerDavid S. Miller <davem@davemloft.net>2012-04-17 16:08:29 -0400
commit7b56f76edf2da7ab3e356cc0db16f9af4c6a26e2 (patch)
tree655860580d081c983e643589e6f56cc1a01138f3 /arch/sparc/net/bpf_jit_comp.c
parentb3d7b2f2f07ff0ab87442f2d499f2860ef59bfaa (diff)
net: filter: Fix some minor issues in sparc JIT.
Correct conventions comments. %o4 and %o5 were swapped, %g3 was not documented. Use r_TMP instead of r_SKB_DATA + r_OFF where possible in assembler stubs. Correct discussion of %o4 and %o5 in one of bpf_jit_compile()'s comments. Based upon feedback from Richard Mortimer. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/net/bpf_jit_comp.c')
-rw-r--r--arch/sparc/net/bpf_jit_comp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/net/bpf_jit_comp.c b/arch/sparc/net/bpf_jit_comp.c
index 86349cab60c5..ebc89809f585 100644
--- a/arch/sparc/net/bpf_jit_comp.c
+++ b/arch/sparc/net/bpf_jit_comp.c
@@ -378,7 +378,7 @@ void bpf_jit_compile(struct sk_filter *fp)
378 emit_clear(r_X); 378 emit_clear(r_X);
379 379
380 /* If this filter needs to access skb data, 380 /* If this filter needs to access skb data,
381 * load %o4 and %o4 with: 381 * load %o4 and %o5 with:
382 * %o4 = skb->len - skb->data_len 382 * %o4 = skb->len - skb->data_len
383 * %o5 = skb->data 383 * %o5 = skb->data
384 * And also back up %o7 into r_saved_O7 so we can 384 * And also back up %o7 into r_saved_O7 so we can