aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorMike Rapoport (IBM) <[email protected]>2024-05-05 16:06:21 +0000
committerLuis Chamberlain <[email protected]>2024-05-14 07:31:43 +0000
commit4d7b321a9ce0782a953874ec69acc2b12b9cb2cd (patch)
treee8abfa527afe7d24a55eb9d6c3bee1d4e46fd511 /arch/powerpc/lib/code-patching.c
parentmm/execmem, arch: convert remaining overrides of module_alloc to execmem (diff)
downloadkernel-4d7b321a9ce0782a953874ec69acc2b12b9cb2cd.tar.gz
kernel-4d7b321a9ce0782a953874ec69acc2b12b9cb2cd.zip
riscv: extend execmem_params for generated code allocations
The memory allocations for kprobes and BPF on RISC-V are not placed in the modules area and these custom allocations are implemented with overrides of alloc_insn_page() and bpf_jit_alloc_exec(). Define MODULES_VADDR and MODULES_END as VMALLOC_START and VMALLOC_END for 32 bit and slightly reorder execmem_params initialization to support both 32 and 64 bit variants, define EXECMEM_KPROBES and EXECMEM_BPF ranges in riscv::execmem_params and drop overrides of alloc_insn_page() and bpf_jit_alloc_exec(). Signed-off-by: Mike Rapoport (IBM) <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions