summaryrefslogtreecommitdiff
path: root/arch/riscv/mm
diff options
context:
space:
mode:
authorZong Li <zong.li@sifive.com>2020-03-09 19:55:40 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-03-26 19:24:42 +0300
commit00cb41d5ad3189f52a59f42766918557693f94fa (patch)
treec5a3b7c169462d455d6a96c990b45a7ece963fbd /arch/riscv/mm
parentbd3d914d16aaf82412771a2d673299d4b5e3aeda (diff)
downloadlinux-00cb41d5ad3189f52a59f42766918557693f94fa.tar.xz
riscv: add alignment for text, rodata and data sections
The kernel mapping will tried to optimize its mapping by using bigger size. In rv64, it tries to use PMD_SIZE, and tryies to use PGDIR_SIZE in rv32. To ensure that the start address of these sections could fit the mapping entry size, make them align to the biggest alignment. Define a macro SECTION_ALIGN because the HPAGE_SIZE or PMD_SIZE, etc., are invisible in linker script. This patch is prepared for STRICT_KERNEL_RWX support. Signed-off-by: Zong Li <zong.li@sifive.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/mm')
0 files changed, 0 insertions, 0 deletions