[U-Boot] [RESEND PATCH v2 03/15] riscv: bootm: Correct the 1st kernel argument to hart id

Auer, Lukas lukas.auer at aisec.fraunhofer.de
Sun Sep 16 20:45:34 UTC 2018


On Mon, 2018-09-10 at 21:54 -0700, Bin Meng wrote:
> 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 at gmail.com>
> 
> 

Reviewed-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>


More information about the U-Boot mailing list