Skip to content
Commit 5370478d authored by Atish Patra's avatar Atish Patra Committed by Andes
Browse files

riscv: Add boot hartid to device tree



Linux booting protocol mandates that register "a0" contains the hartid.
However, U-Boot can not pass the hartid via a0 during standard UEFI
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: default avatarAtish Patra <atish.patra@wdc.com>
Reviewed-by: default avatarRick Chen <rick@andestech.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Tested-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent fa16ec23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment