riscv: remove .text section size limitation for XIP
authorVitaly Wool <vitaly.wool@konsulko.com>
Mon, 11 Oct 2021 09:14:14 +0000 (11:14 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 26 Oct 2021 21:31:15 +0000 (14:31 -0700)
commitf9ace4ede49b09d59d82fea88aa0dc0c770743eb
tree881074b50a31a6c5f87e215fa9651deb684c2856
parent241527bb84674bd597113892ecf2c7ed4a410e00
riscv: remove .text section size limitation for XIP

Currently there's a limit of 8MB for the .text section of a RISC-V
image in the XIP case. This breaks compilation of many automatic
builds and is generally inconvenient. This patch removes that
limitation and optimizes XIP image file size at the same time.

Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/pgtable.h
arch/riscv/kernel/head.S
arch/riscv/kernel/vmlinux-xip.lds.S
arch/riscv/mm/init.c