]> 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)
commit0a56dd62571aa56b658f0427e30c454ffdf9b607
tree2d61ebaf1931f734fb8fc903464dcf5949d73614
parent68ed2672b8fdb9454c449f573990714135c93adc
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