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>
This commit is contained in:
Nick Kossifidis 2020-10-12 17:24:10 +03:00 • committed by Palmer Dabbelt
commit 00ab027a3b
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
2 changed files with 160 additions and 27 deletions