riscv: Simplify xip and !xip kernel address conversion macros
authorAlexandre Ghiti <alex@ghiti.fr>
Fri, 4 Jun 2021 11:49:48 +0000 (13:49 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 11 Jun 2021 21:29:17 +0000 (14:29 -0700)
commit7094e6acaf7ab869a1f1c34825ba1fe3173fe350
tree4b44d1627606421f2ac16cf73be5c2ddda1723c5
parent9b79878ced8f7ab85c57623f8b1f6882e484a316
riscv: Simplify xip and !xip kernel address conversion macros

To simplify the kernel address conversion code, make the same definition of
kernel_mapping_pa_to_va and kernel_mapping_va_to_pa compatible for both xip
and !xip kernel by defining XIP_OFFSET to 0 in !xip kernel.

Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/page.h
arch/riscv/include/asm/pgtable.h