forked from Mirrors/opensbi
		
	include: sbi: Introduce nascent_init() platform callback
We introduce nascent_init() platform callback which will allow platforms to do very early initialization of platform specific per-HART CSRs and per-HART devices. Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com>
This commit is contained in:
		@@ -494,6 +494,14 @@ void __noreturn sbi_init(struct sbi_scratch *scratch)
 | 
			
		||||
	if (next_mode_supported && atomic_xchg(&coldboot_lottery, 1) == 0)
 | 
			
		||||
		coldboot = TRUE;
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * Do platform specific nascent (very early) initialization so
 | 
			
		||||
	 * that platform can initialize platform specific per-HART CSRs
 | 
			
		||||
	 * or per-HART devices.
 | 
			
		||||
	 */
 | 
			
		||||
	if (sbi_platform_nascent_init(plat))
 | 
			
		||||
		sbi_hart_hang();
 | 
			
		||||
 | 
			
		||||
	if (coldboot)
 | 
			
		||||
		init_coldboot(scratch, hartid);
 | 
			
		||||
	else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user