summaryrefslogtreecommitdiffstats
path: root/arch/sparc/net/bpf_jit.h
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.h
parentb3d7b2f2f07ff0ab87442f2d499f2860ef59bfaa (diff)
downloadtalos-op-linux-7b56f76edf2da7ab3e356cc0db16f9af4c6a26e2.tar.gz
talos-op-linux-7b56f76edf2da7ab3e356cc0db16f9af4c6a26e2.zip
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.h')
-rw-r--r--arch/sparc/net/bpf_jit.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sparc/net/bpf_jit.h b/arch/sparc/net/bpf_jit.h
index 74f048be739c..05175be442fb 100644
--- a/arch/sparc/net/bpf_jit.h
+++ b/arch/sparc/net/bpf_jit.h
@@ -4,13 +4,14 @@
/* Conventions:
* %g1 : temporary
* %g2 : Secondary temporary used by SKB data helper stubs.
+ * %g3 : packet offset passed into SKB data helper stubs.
* %o0 : pointer to skb (first argument given to JIT function)
* %o1 : BPF A accumulator
* %o2 : BPF X accumulator
* %o3 : Holds saved %o7 so we can call helper functions without needing
* to allocate a register window.
- * %o4 : skb->data
- * %o5 : skb->len - skb->data_len
+ * %o4 : skb->len - skb->data_len
+ * %o5 : skb->data
*/
#ifndef __ASSEMBLER__
OpenPOWER on IntegriCloud