summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2020-01-03 15:13:33 +0530
committerAnup Patel <[email protected]>2020-01-07 12:11:48 +0530
commita67fd68cbf02af84af9e6e7f8e28aadcecc94910 (patch)
tree87d35be847cacf6b2bac33d65a6a84259151b0e6 /include
parent73c19e69f3000351dc30d272a17dffa694e9b6bf (diff)
lib: Add sbi_init_count() API
We add sbi_init_count() API which provides number of times a given HART completed init sequence (warmboot/coldboot). This will be very useful in debugging. With upcoming SBI HSM extension, it will also help in implementing one-time init code for each HART. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_init.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_init.h b/include/sbi/sbi_init.h
index c976276d..74eb1c07 100644
--- a/include/sbi/sbi_init.h
+++ b/include/sbi/sbi_init.h
@@ -16,6 +16,8 @@ struct sbi_scratch;
void __noreturn sbi_init(struct sbi_scratch *scratch);
+unsigned long sbi_init_count(u32 hartid);
+
void __noreturn sbi_exit(struct sbi_scratch *scratch);
#endif