]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Add kernel image sections to the resource tree
authorNick Kossifidis <mick@ics.forth.gr>
Mon, 12 Oct 2020 14:24:10 +0000 (17:24 +0300)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 9 Nov 2020 19:54:30 +0000 (11:54 -0800)
commit00ab027a3b82dbad0a698fef1e359ebcab4c205b
tree2d61ebaf1931f734fb8fc903464dcf5949d73614
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
RISC-V: Add kernel image sections to the resource tree

This patch (previously part of my kexec/kdump series) populates
/proc/iomem with the various sections of the kernel image. We need
this for kexec-tools to be able to prepare the crashkernel image
for kdump to work. Since resource tree initialization is not
related to memory initialization I added the code to kernel/setup.c
and removed the original code (derived from the arm64 tree) from
mm/init.c.

Signed-off-by: Nick Kossifidis <mick@ics.forth.gr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/setup.c
arch/riscv/mm/init.c