Browse Source

sparc: Split BPF JIT into 32-bit and 64-bit.

This is in preparation for adding the 64-bit eBPF JIT.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 8 years ago
parent
commit
6b3d4eec7f

+ 1 - 1
arch/sparc/net/Makefile

@@ -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

+ 0 - 0
arch/sparc/net/bpf_jit.h → arch/sparc/net/bpf_jit_32.h


+ 1 - 1
arch/sparc/net/bpf_jit_asm.S → arch/sparc/net/bpf_jit_asm_32.S

@@ -1,6 +1,6 @@
 #include <asm/ptrace.h>
 
-#include "bpf_jit.h"
+#include "bpf_jit_32.h"
 
 #ifdef CONFIG_SPARC64
 #define SAVE_SZ		176

+ 1 - 0
arch/sparc/net/bpf_jit_asm_64.S

@@ -0,0 +1 @@
+#include "bpf_jit_asm_32.S"

+ 1 - 1
arch/sparc/net/bpf_jit_comp.c → arch/sparc/net/bpf_jit_comp_32.c

@@ -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;
 

+ 1 - 0
arch/sparc/net/bpf_jit_comp_64.c

@@ -0,0 +1 @@
+#include "bpf_jit_comp_32.c"