From f64dfcd2b5e78e9eea3fe3fee58e0632b5f81b99 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Mon, 20 Mar 2023 18:52:02 +0530 Subject: lib: sbi: Introduce sbi_entry_count() function We introduce sbi_entry_count() function which counts the number of times a HART enters OpenSBI via cold-boot or warm-boot path. Signed-off-by: Anup Patel --- include/sbi/sbi_init.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/sbi/sbi_init.h b/include/sbi/sbi_init.h index 74eb1c07..9640fee9 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_entry_count(u32 hartid); + unsigned long sbi_init_count(u32 hartid); void __noreturn sbi_exit(struct sbi_scratch *scratch); -- cgit v1.3.1