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:
Himanshu Chauhan
2024-09-23 11:26:26 +05:30
committed by Anup Patel
parent ebbd276146
commit b919daf495
4 changed files with 53 additions and 0 deletions

View File

@@ -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;
}