[RESEND PATCH v5 1/6] riscv: Add boot hartid to Device tree

Bin Meng bmeng.cn at gmail.com
Sat Apr 18 14:24:47 CEST 2020

On Sat, Apr 18, 2020 at 2:10 PM Atish Patra <atish.patra at wdc.com> wrote:

nits: Device => device in the commit title

> Linux booting protocol mandates that register "a0" contains the hartid.
> However, U-boot can not pass the hartid via a0 during via standard UEFI

nits: U-boot => U-Boot

> protocol. DT nodes are commonly used to pass such information to the OS.
> Add a DT node under chosen node to indicate the boot hartid. EFI stub
> in Linux kernel will parse this node and pass it to the real kernel
> in "a0" before jumping to it.
> Signed-off-by: Atish Patra <atish.patra at wdc.com>
> Reviewed-by: Rick Chen <rick at andestech.com>
> Tested-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  arch/riscv/lib/bootm.c | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

More information about the U-Boot mailing list