]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: remove limit on the size of read-only section for XIP kernel
authorNam Cao <namcao@linutronix.de>
Fri, 7 Jun 2024 20:22:13 +0000 (22:22 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 12 Sep 2024 14:23:02 +0000 (07:23 -0700)
commitb635a84bde6f0b94944b5d960f4e6a52ac3555c6
tree32e37076111007b3f15a8a76ca3241f18c7db9fe
parenta7cfb999433ad3a1aa7ca86ecdaf3e061ab7076a
riscv: remove limit on the size of read-only section for XIP kernel

XIP_OFFSET is the hard-coded offset of writable data section within the
kernel.

By hard-coding this value, the read-only section of the kernel (which is
placed before the writable data section) is restricted in size. This causes
build failures if the kernel gets too big [1].

Remove this limit.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404211031.J6l2AfJk-lkp@intel.com [1]
Signed-off-by: Nam Cao <namcao@linutronix.de>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/3bf3a77be10ebb0d8086c028500baa16e7a8e648.1717789719.git.namcao@linutronix.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/pgtable.h
arch/riscv/include/asm/set_memory.h
arch/riscv/kernel/vmlinux-xip.lds.S