1 // SPDX-License-Identifier: GPL-2.0 2 #include <linux/mm.h> 3 #include <linux/execmem.h> 4 5 static struct execmem_info execmem_info __ro_after_init; 6 7 struct execmem_info __init *execmem_arch_setup(void) 8 { 9 execmem_info = (struct execmem_info){ 10 .ranges = { 11 [EXECMEM_DEFAULT] = { 12 .start = MODULES_VADDR, 13 .end = MODULES_END, 14 .pgprot = PAGE_KERNEL, 15 .alignment = 1, 16 }, 17 }, 18 }; 19 20 return &execmem_info; 21 } 22