commit | 7094e6acaf7ab869a1f1c34825ba1fe3173fe350 | [log] [tgz] |
---|---|---|
author | Alexandre Ghiti <alex@ghiti.fr> | Fri Jun 04 13:49:48 2021 +0200 |
committer | Palmer Dabbelt <palmerdabbelt@google.com> | Fri Jun 11 14:29:17 2021 -0700 |
tree | 4b44d1627606421f2ac16cf73be5c2ddda1723c5 | |
parent | 9b79878ced8f7ab85c57623f8b1f6882e484a316 [diff] |
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>