summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_hart.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-05-21 14:25:04 +0300
committerAnup Patel <anup@brainfault.org>2019-05-24 05:52:47 +0300
commitbb915780ac76b146f3de47f105a95359e02f158c (patch)
tree515737e6271e516beeefc0cc347766245527d021 /include/sbi/sbi_hart.h
parenta22c6891b718a155b2b8429be62760860b4d6109 (diff)
downloadopensbi-bb915780ac76b146f3de47f105a95359e02f158c.tar.xz
lib: Add per-HART trap info pointer
This patch adds per-HART trap info pointer which can be used to communicate trap information to sbi_trap_handler(). Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi/sbi_hart.h')
-rw-r--r--include/sbi/sbi_hart.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index b282af9..4aa4a5c 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -14,7 +14,11 @@
struct sbi_scratch;
-int sbi_hart_init(struct sbi_scratch *scratch, u32 hartid);
+int sbi_hart_init(struct sbi_scratch *scratch, u32 hartid, bool cold_boot);
+
+void *sbi_hart_get_trap_info(struct sbi_scratch *scratch);
+
+void sbi_hart_set_trap_info(struct sbi_scratch *scratch, void *data);
void sbi_hart_pmp_dump(struct sbi_scratch *scratch);