Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d7ce8a5f
Commit
d7ce8a5f
authored
Jun 06, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc bpf_jit: support BPF_S_ANC_ALU_XOR_X instruction
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
4bfaddf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
arch/sparc/net/bpf_jit_comp.c
arch/sparc/net/bpf_jit_comp.c
+4
-0
No files found.
arch/sparc/net/bpf_jit_comp.c
View file @
d7ce8a5f
...
...
@@ -96,6 +96,7 @@ static void bpf_flush_icache(void *start_, void *end_)
#define AND F3(2, 0x01)
#define ANDCC F3(2, 0x11)
#define OR F3(2, 0x02)
#define XOR F3(2, 0x03)
#define SUB F3(2, 0x04)
#define SUBCC F3(2, 0x14)
#define MUL F3(2, 0x0a)
/* umul */
...
...
@@ -462,6 +463,9 @@ void bpf_jit_compile(struct sk_filter *fp)
case
BPF_S_ALU_OR_K
:
/* A |= K */
emit_alu_K
(
OR
,
K
);
break
;
case
BPF_S_ANC_ALU_XOR_X
:
/* A ^= X; */
emit_alu_X
(
XOR
);
break
;
case
BPF_S_ALU_LSH_X
:
/* A <<= X */
emit_alu_X
(
SLL
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment