Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 8b08f501 authored by Michael Clark's avatar Michael Clark Committed by Palmer Dabbelt
Browse files

Rename sbi_save to parse_dtb to improve code readability



The sbi_ prefix would seem to indicate an SBI interface, and save is not
very specific. After applying this patch, reading head.S makes more sense.

Signed-off-by: default avatarMichael Clark <michaeljclark@mac.com>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent bcae803a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ ENTRY(_start)
	/* Start the kernel */
	mv a0, s0
	mv a1, s1
	call sbi_save
	call parse_dtb
	tail start_kernel

relocate:
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ asmlinkage void __init setup_vm(void)
#endif
}

void __init sbi_save(unsigned int hartid, void *dtb)
void __init parse_dtb(unsigned int hartid, void *dtb)
{
	early_init_dt_scan(__va(dtb));
}