const struct fdt_match *match_table;
u64 (*features)(const struct fdt_match *match);
u64 (*tlbr_flush_limit)(const struct fdt_match *match);
+ bool (*cold_boot_allowed)(u32 hartid, const struct fdt_match *match);
int (*early_init)(bool cold_boot, const struct fdt_match *match);
int (*final_init)(bool cold_boot, const struct fdt_match *match);
void (*early_exit)(const struct fdt_match *match);
wfi();
}
+static bool generic_cold_boot_allowed(u32 hartid)
+{
+ if (generic_plat && generic_plat->cold_boot_allowed)
+ return generic_plat->cold_boot_allowed(
+ hartid, generic_plat_match);
+ return true;
+}
+
static int generic_nascent_init(void)
{
if (platform_has_mlevel_imsic)
}
const struct sbi_platform_operations platform_ops = {
+ .cold_boot_allowed = generic_cold_boot_allowed,
.nascent_init = generic_nascent_init,
.early_init = generic_early_init,
.final_init = generic_final_init,