]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Allow to dynamically define VA_BITS
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>
Mon, 6 Dec 2021 10:46:48 +0000 (11:46 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 20 Jan 2022 01:54:07 +0000 (17:54 -0800)
commit5f8449ebc825083008fc522f83bae73617bcd46c
tree6d948ca0ba57cd53294fa72d36e859a77cc73db0
parent24ce4a65414efa2aef455ec3fbb5ff34c0bade83
riscv: Allow to dynamically define VA_BITS

With 4-level page table folding at runtime, we don't know at compile time
the size of the virtual address space so we must set VA_BITS dynamically
so that sparsemem reserves the right amount of memory for struct pages.

Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/include/asm/kasan.h
arch/riscv/include/asm/pgtable.h
arch/riscv/include/asm/sparsemem.h