nios2: define virtual address space for modules
authorMike Rapoport (IBM) <rppt@kernel.org>
Sun, 5 May 2024 16:06:15 +0000 (19:06 +0300)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 14 May 2024 07:31:43 +0000 (00:31 -0700)
commit38762155fdda3af2cfca371b555a72187259acfd
tree0e86991d703ff692cd49bca17f6ac2fad0a41ec1
parent0cdf5876c4b251eaa2b8c43cfe7bfaa8d8dcea2c
nios2: define virtual address space for modules

nios2 uses kmalloc() to implement module_alloc() because CALL26/PCREL26
cannot reach all of vmalloc address space.

Define module space as 32MiB below the kernel base and switch nios2 to
use vmalloc for module allocations.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
arch/nios2/include/asm/pgtable.h
arch/nios2/kernel/module.c