summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorClément Léger <[email protected]>2025-03-25 11:26:13 +0100
committerAnup Patel <[email protected]>2025-03-27 18:16:28 +0530
commitb4464b22e4d3780ad73318af6091cea1d72404d1 (patch)
tree8820859c96a9cca3f17ec3c89d7c2d2182e5c16c /include
parent53d322f8aeff9da1c016802e0a5a5ef2ecfd1b2a (diff)
lib: sbi: sse: Add support for SSTATUS.SPELP
As raised during the ARC review, SPELP was not handled during the event injection process. Save it as part of the interrupted flags, clear it before injecting the event and restore it after completion. Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Andrew Jones <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_ecall_interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sbi/sbi_ecall_interface.h b/include/sbi/sbi_ecall_interface.h
index 6c210942..6114171e 100644
--- a/include/sbi/sbi_ecall_interface.h
+++ b/include/sbi/sbi_ecall_interface.h
@@ -384,6 +384,7 @@ enum sbi_sse_attr_id {
#define SBI_SSE_ATTR_INTERRUPTED_FLAGS_SSTATUS_SPIE BIT(1)
#define SBI_SSE_ATTR_INTERRUPTED_FLAGS_HSTATUS_SPV BIT(2)
#define SBI_SSE_ATTR_INTERRUPTED_FLAGS_HSTATUS_SPVP BIT(3)
+#define SBI_SSE_ATTR_INTERRUPTED_FLAGS_SSTATUS_SPELP BIT(4)
enum sbi_sse_state {
SBI_SSE_STATE_UNUSED = 0,