]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: bootm: Correct the 1st kernel argument to hart id
authorBin Meng <bmeng.cn@gmail.com>
Wed, 26 Sep 2018 13:55:08 +0000 (06:55 -0700)
committerAndes <uboot@andestech.com>
Wed, 3 Oct 2018 09:46:51 +0000 (17:46 +0800)
commit4afeedf1728fe7e992b460d0369a06f8bfe4f9f3
tree123628689c240098072df7ee14d8e076f41d4743
parent3ad4866dd7796718db939247e39f5ab9a121f9e3
riscv: bootm: Correct the 1st kernel argument to hart id

The first argument of Linux kernel is the risc-v core hart id,
from which the kernel is booted from. It is not the mach_id,
which seems to be copied from arm.

While we are here, this also changes the Linux kernel entry
parameters' type to support both 32-bit and 64-bit.

Note the hart id is hardcoded to zero for now, and we should
change to fill in it with the value read from mhartid CSR of
the hart which this routine is currently running on.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/lib/bootm.c