diff options
| author | Anup Patel <[email protected]> | 2023-12-11 20:59:14 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-12-19 15:56:37 +0530 |
| commit | 3284bea83368de2ced244d5b2b0eaeaae812a08d (patch) | |
| tree | 13dd7291e406519a06b421d0d06e948055d5e959 /platform/generic/include | |
| parent | cdebae2cc9539e2e0553b9c68eab22997c734cbb (diff) | |
lib: sbi: Allow ecall handlers to directly update register state
Some of the upcoming SBI extensions (such as SSE) will directly
update register state so improve the prototype of ecall handler
to accommodate this. Further, this flexibility allows us to
push the trap redirection from sbi_ecall_handler() to the
sbi_ecall_legacy_handler().
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/generic/include')
| -rw-r--r-- | platform/generic/include/andes/andes_sbi.h | 6 | ||||
| -rw-r--r-- | platform/generic/include/platform_override.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/platform/generic/include/andes/andes_sbi.h b/platform/generic/include/andes/andes_sbi.h index e5dc2507..1288af81 100644 --- a/platform/generic/include/andes/andes_sbi.h +++ b/platform/generic/include/andes/andes_sbi.h @@ -3,13 +3,13 @@ #ifndef _RISCV_ANDES_SBI_H #define _RISCV_ANDES_SBI_H +#include <sbi/sbi_ecall.h> #include <sbi/sbi_trap.h> #include <sbi_utils/fdt/fdt_helper.h> int andes_sbi_vendor_ext_provider(long funcid, - const struct sbi_trap_regs *regs, - unsigned long *out_value, - struct sbi_trap_info *out_trap, + struct sbi_trap_regs *regs, + struct sbi_ecall_return *out, const struct fdt_match *match); #endif /* _RISCV_ANDES_SBI_H */ diff --git a/platform/generic/include/platform_override.h b/platform/generic/include/platform_override.h index f2a4327e..b0585c21 100644 --- a/platform/generic/include/platform_override.h +++ b/platform/generic/include/platform_override.h @@ -10,6 +10,7 @@ #ifndef __PLATFORM_OVERRIDE_H__ #define __PLATFORM_OVERRIDE_H__ +#include <sbi/sbi_ecall.h> #include <sbi/sbi_hart.h> #include <sbi/sbi_types.h> #include <sbi/sbi_trap.h> @@ -30,9 +31,8 @@ struct platform_override { int (*pmu_init)(const struct fdt_match *match); void (*fw_init)(void *fdt, const struct fdt_match *match); int (*vendor_ext_provider)(long funcid, - const struct sbi_trap_regs *regs, - unsigned long *out_value, - struct sbi_trap_info *out_trap, + struct sbi_trap_regs *regs, + struct sbi_ecall_return *out, const struct fdt_match *match); }; |
