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>
This commit is contained in:
Kefeng Wang 2021-06-02 16:55:17 +08:00 • committed by Palmer Dabbelt
commit c9811e379b
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889