test(notifications): test schedule receiver interrupt
Refactor slightly tests that signal global notifications from SP to SP,
from VM to SP, and from SP to VM, to verify if SRI has been set
after the notifications set.
In this test the flag to delay sending SRI is being used, however no
validation interrupt sending has been delayed yet.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I28403bb1e09f2c2090eb9913d5b07b7eb245fb4d
diff --git a/include/runtime_services/ffa_helpers.h b/include/runtime_services/ffa_helpers.h
index b25b6a1..1774848 100644
--- a/include/runtime_services/ffa_helpers.h
+++ b/include/runtime_services/ffa_helpers.h
@@ -80,6 +80,12 @@
#define FFA_NOTIFICATIONS_FLAG_BITMAP_SPM UINT32_C(0x1 << 2)
#define FFA_NOTIFICATIONS_FLAG_BITMAP_HYP UINT32_C(0x1 << 3)
+/**
+ * The following is an SGI ID, that the SPMC configures as non-secure, as
+ * suggested by the FF-A v1.1 specification, in section 9.4.1.
+ */
+#define FFA_SCHEDULE_RECEIVER_INTERRUPT_ID 8
+
#define FFA_NOTIFICATIONS_BITMAP(lo, hi) \
(ffa_notification_bitmap_t)(lo) | \
(((ffa_notification_bitmap_t)hi << 32) & 0xFFFFFFFF00000000ULL)