riscv: pgtable: Fixup comment for KERN_VIRT_SIZE
authorGuo Ren <guoren@linux.alibaba.com>
Tue, 10 Jan 2023 08:04:19 +0000 (03:04 -0500)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 25 Jan 2023 00:19:07 +0000 (16:19 -0800)
commit6be1ff430dab9fc047762b10b2c9669399ea1f37
treed022c58ee6ffe49353dd92e928d781d343a416b8
parent61a9b7129070e07c207d89fffbce577223507327
riscv: pgtable: Fixup comment for KERN_VIRT_SIZE

KERN_VIRT_SIZE is 1/4 of the entries of the page global directory,
not half.

Fixes: f7ae02333d13 ("riscv: Move KASAN mapping next to the kernel mapping")
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Cc: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20230110080419.931185-1-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/pgtable.h