summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-02-05 15:02:30 +0300
committerAnup Patel <anup@brainfault.org>2021-03-03 07:49:18 +0300
commit4b05df6700adbc71cfa5f681bf9263447c9140c4 (patch)
tree21a3cfb8d461016f2595a0a12d4d2b0f148e7a0a /include
parent6290a22e3428ffe79266310a3a10072efc198e97 (diff)
downloadopensbi-4b05df6700adbc71cfa5f681bf9263447c9140c4.tar.xz
lib: sbi: Add sbi_hart_reinit() function
We add sbi_hart_reinit() function which will re-initialize HART CSRs assuming HART features are already detected. This new function will be useful in re-initializing HART after it resumes from HSM SUSPENDED state. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_hart.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index ec9e30f..031c7b0 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -27,6 +27,7 @@ enum sbi_hart_features {
struct sbi_scratch;
+int sbi_hart_reinit(struct sbi_scratch *scratch);
int sbi_hart_init(struct sbi_scratch *scratch, bool cold_boot);
extern void (*sbi_hart_expected_trap)(void);