riscv: bpf: Move bpf_jit_alloc_exec() and bpf_jit_free_exec() to core
authorJisheng Zhang <jszhang@kernel.org>
Mon, 29 Mar 2021 18:24:54 +0000 (02:24 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 26 Apr 2021 15:25:12 +0000 (08:25 -0700)
commit1d27d854425faec98f352cf88ec3e2a8844429a4
treebfb0207b17615d7a70e60ac299e95a1cec09c7c7
parentcdd1b2bd358ffda2638fe18ff47191e84e18525f
riscv: bpf: Move bpf_jit_alloc_exec() and bpf_jit_free_exec() to core

We will drop the executable permissions of the code pages from the
mapping at allocation time soon. Move bpf_jit_alloc_exec() and
bpf_jit_free_exec() to bpf_jit_core.c so that they can be shared by
both RV64I and RV32I.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Acked-by: Luke Nelson <luke.r.nels@gmail.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/net/bpf_jit_comp64.c
arch/riscv/net/bpf_jit_core.c