Skip to content

Commit

Permalink
sparc: Split BPF JIT into 32-bit and 64-bit.
Browse files Browse the repository at this point in the history
This is in preparation for adding the 64-bit eBPF JIT.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 22, 2017
1 parent fb79670 commit 6b3d4ee
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/sparc/net/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#
# Arch-specific network modules
#
obj-$(CONFIG_BPF_JIT) += bpf_jit_asm.o bpf_jit_comp.o
obj-$(CONFIG_BPF_JIT) += bpf_jit_asm_$(BITS).o bpf_jit_comp_$(BITS).o
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <asm/ptrace.h>

#include "bpf_jit.h"
#include "bpf_jit_32.h"

#ifdef CONFIG_SPARC64
#define SAVE_SZ 176
Expand Down
1 change: 1 addition & 0 deletions arch/sparc/net/bpf_jit_asm_64.S
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "bpf_jit_asm_32.S"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <asm/cacheflush.h>
#include <asm/ptrace.h>

#include "bpf_jit.h"
#include "bpf_jit_32.h"

int bpf_jit_enable __read_mostly;

Expand Down
1 change: 1 addition & 0 deletions arch/sparc/net/bpf_jit_comp_64.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "bpf_jit_comp_32.c"

0 comments on commit 6b3d4ee

Please sign in to comment.