mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 15:51:41 +01:00
lib: sbi: Add support to mask/unmask SSE events
Add functions to globally mask/unmask supervisor software events on the calling hart. Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
ebbd276146
commit
b919daf495
@@ -36,6 +36,12 @@ static int sbi_ecall_sse_handler(unsigned long extid, unsigned long funcid,
|
||||
case SBI_EXT_SSE_INJECT:
|
||||
ret = sbi_sse_inject_from_ecall(regs->a0, regs->a1, out);
|
||||
break;
|
||||
case SBI_EXT_SSE_HART_MASK:
|
||||
ret = sbi_sse_hart_mask();
|
||||
break;
|
||||
case SBI_EXT_SSE_HART_UNMASK:
|
||||
ret = sbi_sse_hart_unmask();
|
||||
break;
|
||||
default:
|
||||
ret = SBI_ENOTSUPP;
|
||||
}
|
||||
|
Reference in New Issue
Block a user