mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-10-24 04:32:05 +01:00
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 <apatel@ventanamicro.com>
This commit is contained in:
1 parent
cdebae2cc9
commit
3284bea833
19 files changed
+109
-107
No files matched your search
@@ -203,12 +203,10 @@ static bool generic_vendor_ext_check(void)
|
||||
}
|
||||
|
||||
static int generic_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)
|
||||
{
|
||||
return generic_plat->vendor_ext_provider(funcid, regs,
|
||||
out_value, out_trap,
|
||||
return generic_plat->vendor_ext_provider(funcid, regs, out,
|
||||
generic_plat_match);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user