]> git.baikalelectronics.ru Git - uboot.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)
commit37c8b17e0d370d1ba91d6e698a2a3cf7a8603d18
tree123628689c240098072df7ee14d8e076f41d4743
parentd5cc3222059000954f967fe666a7b2d935895d3f
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