diff options
author | Alexandre Ghiti <alex@ghiti.fr> | 2021-06-17 15:53:07 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-07-06 03:04:00 +0200 |
commit | 658e2c5125bbbc9b9b5eac23b3c35b87df3c30b8 (patch) | |
tree | 34e35315382e3a233f8df5fb4893a5a11ad98620 /arch/riscv/mm/ptdump.c | |
parent | Merge branch 'riscv-wx-mappings' into for-next (diff) | |
download | linux-658e2c5125bbbc9b9b5eac23b3c35b87df3c30b8.tar.xz 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/mm/ptdump.c')
-rw-r--r-- | arch/riscv/mm/ptdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c index 0536ac84b730..ee4e5c1c39c5 100644 --- a/arch/riscv/mm/ptdump.c +++ b/arch/riscv/mm/ptdump.c @@ -379,7 +379,7 @@ static int __init ptdump_init(void) address_markers[PAGE_OFFSET_NR].start_address = PAGE_OFFSET; #ifdef CONFIG_64BIT address_markers[MODULES_MAPPING_NR].start_address = MODULES_VADDR; - address_markers[KERNEL_MAPPING_NR].start_address = kernel_virt_addr; + address_markers[KERNEL_MAPPING_NR].start_address = kernel_map.virt_addr; #endif kernel_ptd_info.base_addr = KERN_VIRT_START; |