aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2024-03-11 18:15:20 +0530
committerAnup Patel <anup@brainfault.org>2024-03-19 11:31:39 +0530
commit5b11f16c3c65feb065ba6a703d69a3c56ccca688 (patch)
treeaad044b21ef5dbe39259a658277349959d40504e /include
parent43d346c0c1d3817d863741c3c523ab6e0c87cc6f (diff)
downloadopensbi-5b11f16c3c65feb065ba6a703d69a3c56ccca688.tar.gz
opensbi-5b11f16c3c65feb065ba6a703d69a3c56ccca688.tar.bz2
opensbi-5b11f16c3c65feb065ba6a703d69a3c56ccca688.zip
lib: sbi: Pass trap context pointer to sbi_ecall_handler()
To be consistent with other trap handlers, pass trap context pointer to sbi_ecall_handler(). Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Samuel Holland <samuel.holland@sifive.com> Tested-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Clément Léger <cleger@rivosinc.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_ecall.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi/sbi_ecall.h b/include/sbi/sbi_ecall.h
index 0bf42d16..0b35eff7 100644
--- a/include/sbi/sbi_ecall.h
+++ b/include/sbi/sbi_ecall.h
@@ -18,7 +18,7 @@
#define SBI_OPENSBI_IMPID 1
struct sbi_trap_regs;
-struct sbi_trap_info;
+struct sbi_trap_context;
struct sbi_ecall_return {
/* Return flag to skip register update */
@@ -87,7 +87,7 @@ int sbi_ecall_register_extension(struct sbi_ecall_extension *ext);
void sbi_ecall_unregister_extension(struct sbi_ecall_extension *ext);
-int sbi_ecall_handler(struct sbi_trap_regs *regs);
+int sbi_ecall_handler(struct sbi_trap_context *tcntx);
int sbi_ecall_init(void);