riscv: Make vmalloc/vmemmap end equal to the start of the next region
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>
Thu, 18 Nov 2021 13:45:39 +0000 (14:45 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 6 Jan 2022 03:22:13 +0000 (19:22 -0800)
commit7cc8c75b54fa6d2c0a802b915feecad3abe6ddd7
tree6c817ec110ed1dac02002bc2a5e38dfca441af42
parent1f77ed9422cbc41e1a5d17654b7e527a4a23b665
riscv: Make vmalloc/vmemmap end equal to the start of the next region

We used to define VMALLOC_END equal to the start of the next region
*minus one* which is inconsistent with the use of this define in the
core code (for example, see the definitions of VMALLOC_TOTAL and
is_vmalloc_addr).

And then make the definition of VMEMMAP_END consistent with VMALLOC_END
and all other regions actually.

Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/pgtable.h
arch/riscv/mm/fault.c