aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2023-03-20 18:52:02 +0530
committerAnup Patel <anup@brainfault.org>2023-04-06 18:48:15 +0530
commitf64dfcd2b5e78e9eea3fe3fee58e0632b5f81b99 (patch)
treecde9d6b14ce163b1cbee07f72802ac5ff37681de /include
parent73ab11dfb0bfaa2f7792cf10804c04c157dc2291 (diff)
downloadopensbi-f64dfcd2b5e78e9eea3fe3fee58e0632b5f81b99.zip
opensbi-f64dfcd2b5e78e9eea3fe3fee58e0632b5f81b99.tar.gz
opensbi-f64dfcd2b5e78e9eea3fe3fee58e0632b5f81b99.tar.bz2
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 <apatel@ventanamicro.com>
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 74eb1c0..9640fee 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);