diff options
author | David S. Miller <davem@davemloft.net> | 2012-04-18 00:08:29 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-18 00:08:29 +0400 |
commit | 7b56f76edf2da7ab3e356cc0db16f9af4c6a26e2 (patch) | |
tree | 655860580d081c983e643589e6f56cc1a01138f3 /arch/sparc/net/bpf_jit_asm.S | |
parent | b3d7b2f2f07ff0ab87442f2d499f2860ef59bfaa (diff) | |
download | linux-7b56f76edf2da7ab3e356cc0db16f9af4c6a26e2.tar.xz |
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_asm.S')
-rw-r--r-- | arch/sparc/net/bpf_jit_asm.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/net/bpf_jit_asm.S b/arch/sparc/net/bpf_jit_asm.S index fdc69324aabc..46d8f59f14c5 100644 --- a/arch/sparc/net/bpf_jit_asm.S +++ b/arch/sparc/net/bpf_jit_asm.S @@ -30,7 +30,7 @@ bpf_jit_load_word_positive_offset: bne load_word_unaligned nop retl - ld [r_SKB_DATA + r_OFF], r_A + ld [r_TMP], r_A load_word_unaligned: ldub [r_TMP + 0x0], r_OFF ldub [r_TMP + 0x1], r_TMP2 @@ -59,7 +59,7 @@ bpf_jit_load_half_positive_offset: bne load_half_unaligned nop retl - lduh [r_SKB_DATA + r_OFF], r_A + lduh [r_TMP], r_A load_half_unaligned: ldub [r_TMP + 0x0], r_OFF ldub [r_TMP + 0x1], r_TMP2 |