diff options
author | David S. Miller <davem@davemloft.net> | 2012-04-17 16:08:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-17 16:08:29 -0400 |
commit | 7b56f76edf2da7ab3e356cc0db16f9af4c6a26e2 (patch) | |
tree | 655860580d081c983e643589e6f56cc1a01138f3 /arch/sparc/net/bpf_jit.h | |
parent | b3d7b2f2f07ff0ab87442f2d499f2860ef59bfaa (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.h')
-rw-r--r-- | arch/sparc/net/bpf_jit.h | 5 |
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 @@ | |||
4 | /* Conventions: | 4 | /* Conventions: |
5 | * %g1 : temporary | 5 | * %g1 : temporary |
6 | * %g2 : Secondary temporary used by SKB data helper stubs. | 6 | * %g2 : Secondary temporary used by SKB data helper stubs. |
7 | * %g3 : packet offset passed into SKB data helper stubs. | ||
7 | * %o0 : pointer to skb (first argument given to JIT function) | 8 | * %o0 : pointer to skb (first argument given to JIT function) |
8 | * %o1 : BPF A accumulator | 9 | * %o1 : BPF A accumulator |
9 | * %o2 : BPF X accumulator | 10 | * %o2 : BPF X accumulator |
10 | * %o3 : Holds saved %o7 so we can call helper functions without needing | 11 | * %o3 : Holds saved %o7 so we can call helper functions without needing |
11 | * to allocate a register window. | 12 | * to allocate a register window. |
12 | * %o4 : skb->data | 13 | * %o4 : skb->len - skb->data_len |
13 | * %o5 : skb->len - skb->data_len | 14 | * %o5 : skb->data |
14 | */ | 15 | */ |
15 | 16 | ||
16 | #ifndef __ASSEMBLER__ | 17 | #ifndef __ASSEMBLER__ |