diff options
author | 2021-06-17 15:53:07 +0200 | |
---|---|---|
committer | 2021-07-05 18:04:00 -0700 | |
commit | 658e2c5125bbbc9b9b5eac23b3c35b87df3c30b8 (patch) | |
tree | 34e35315382e3a233f8df5fb4893a5a11ad98620 /arch/riscv/kernel/machine_kexec.c | |
parent | Merge branch 'riscv-wx-mappings' into for-next (diff) | |
download | linux-658e2c5125bbbc9b9b5eac23b3c35b87df3c30b8.tar.gz linux-658e2c5125bbbc9b9b5eac23b3c35b87df3c30b8.tar.bz2 linux-658e2c5125bbbc9b9b5eac23b3c35b87df3c30b8.zip |
riscv: Introduce structure that group all variables regarding kernel mapping
We have a lot of variables that are used to hold kernel mapping addresses,
offsets between physical and virtual mappings and some others used for XIP
kernels: they are all defined at different places in mm/init.c, so group
them into a single structure with, for some of them, more explicit and concise
names.
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kernel/machine_kexec.c')
-rw-r--r-- | arch/riscv/kernel/machine_kexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/machine_kexec.c b/arch/riscv/kernel/machine_kexec.c index cc048143fba5..3e39fd95e02b 100644 --- a/arch/riscv/kernel/machine_kexec.c +++ b/arch/riscv/kernel/machine_kexec.c @@ -188,6 +188,6 @@ machine_kexec(struct kimage *image) /* Jump to the relocation code */ pr_notice("Bye...\n"); kexec_method(first_ind_entry, jump_addr, fdt_addr, - this_hart_id, va_pa_offset); + this_hart_id, kernel_map.va_pa_offset); unreachable(); } |