mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-10-31 16:54:21 +00:00
riscv: cleanup the parse_dtb calling conventions
No need to pass the hartid, and the dtb address passed is a physical address, so don't pretend it is a kernel pointer. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
parent
c637b911e0
commit
ba9c014194
2 changed files with 5 additions and 4 deletions
|
|
@ -72,8 +72,7 @@ clear_bss_done:
|
||||||
la sp, init_thread_union + THREAD_SIZE
|
la sp, init_thread_union + THREAD_SIZE
|
||||||
|
|
||||||
/* Start the kernel */
|
/* Start the kernel */
|
||||||
mv a0, s0
|
mv a0, s1
|
||||||
mv a1, s1
|
|
||||||
call parse_dtb
|
call parse_dtb
|
||||||
tail start_kernel
|
tail start_kernel
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,11 @@ struct screen_info screen_info = {
|
||||||
atomic_t hart_lottery;
|
atomic_t hart_lottery;
|
||||||
unsigned long boot_cpu_hartid;
|
unsigned long boot_cpu_hartid;
|
||||||
|
|
||||||
void __init parse_dtb(unsigned int hartid, void *dtb)
|
void __init parse_dtb(phys_addr_t dtb_phys)
|
||||||
{
|
{
|
||||||
if (early_init_dt_scan(__va(dtb)))
|
void *dtb = __va(dtb_phys);
|
||||||
|
|
||||||
|
if (early_init_dt_scan(dtb))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pr_err("No DTB passed to the kernel\n");
|
pr_err("No DTB passed to the kernel\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue