]> git.baikalelectronics.ru Git - kernel.git/commit
arch: riscv: support kernel command line forcing when no DTB passed
authorPaul Walmsley <paul.walmsley@sifive.com>
Tue, 18 Dec 2018 03:15:12 +0000 (19:15 -0800)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 7 Jan 2019 16:08:00 +0000 (08:08 -0800)
commit5085e8bb8c4011a1992a7a9cc4691aac72f0787b
tree1e57a65f63d0e3e9f42b89926202c13f6e16b157
parent175b41f23d29927bfac718e6388a0a3bcc5c4cbf
arch: riscv: support kernel command line forcing when no DTB passed

CONFIG_CMDLINE_FORCE doesn't work on RISC-V when no DTB is passed into
the kernel.  This is because the code that forces the kernel command
line only runs if a valid DTB is present at boot.  During debugging,
it's useful to have the ability to force kernel command lines even
when no DTB is present.  This patch adds support for doing so.

Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: linux-riscv@lists.infradead.org
Cc: linux-kernel@vger.kernel.org (open list)
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/setup.c