RISC-V: Fix memory reservation in setup_bootmem()
authorAnup Patel <Anup.Patel@wdc.com>
Fri, 7 Jun 2019 06:01:29 +0000 (06:01 +0000)
committerPaul Walmsley <paul.walmsley@sifive.com>
Mon, 1 Jul 2019 20:24:53 +0000 (13:24 -0700)
commitd90d45d7dcb732f0d4fbb3b99164ae54999612d5
treed27cd084d87a9d5ec813eb39b4c01e6bbb587de7
parentbbc5dc5155aad9ba50eeda955c591549d761c1db
RISC-V: Fix memory reservation in setup_bootmem()

Currently, the setup_bootmem() reserves memory from RAM start to the
kernel end. This prevents us from exploring ways to use the RAM below
(or before) the kernel start hence this patch updates setup_bootmem()
to only reserve memory from the kernel start to the kernel end.

Suggested-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/mm/init.c