riscv: Add mem kernel parameter support
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 2 Jun 2021 08:55:17 +0000 (16:55 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 15 Jun 2021 15:59:04 +0000 (08:59 -0700)
commitc9811e379b211c67ba29fb09d6f644dd44cfcff2
tree934a861454ea1fa563314c5bb20196982f2907ca
parentce3aca0465e31c20ada1270ac6547ba28b610ab2
riscv: Add mem kernel parameter support

The memblock_enforce_memory_limit() could change the memblock
range, so move the dram_end assignment after it in bootmem_init(),
then support mem= cmdline.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c