bootm: Pass SMP core ID and DTB address for ELF-formatted kernels
author牛 志宏 <Zone.Niuzh@hotmail.com>
Fri, 13 Jun 2025 01:45:28 +0000 (01:45 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 26 Jun 2025 19:48:04 +0000 (13:48 -0600)
commit7fd2795a4b824643bd04513891fbd5e23101ec8c
tree6ad4bbdec7a0a57530c6c1980fc32753500b74fb
parent778c552f86ab781abd8360592ff261707fdefaa7
bootm: Pass SMP core ID and DTB address for ELF-formatted kernels

When booting RISC-V ELF-formatted kernel images (IH_TYPE_KERNEL + IH_OS_ELF),
explicitly pass SMP hart ID (via a0/argc) and DTB address (via a1/argv)
to comply with modern SMP-enabled kernels' boot protocol requirements.
See https://www.kernel.org/doc/html/latest/arch/riscv/boot.html#register-state

Signed-off-by: Zone.N <zone.niuzh@hotmail.com>
boot/bootm_os.c