feat(notifications): notifications set and get
Handle FF-A calls FFA_NOTIFICATION_SET and FFA_NOTIFICATION_GET.
The former is used for a sender to signal a notification to the
receiver; the latter is for the receiver to get whichever notifications
there are pending.
Change-Id: I7e9db94201d0d78ceecd599cd350eeb37a8cb1f8
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/src/arch/aarch64/hypervisor/handler.c b/src/arch/aarch64/hypervisor/handler.c
index 9bcce55..9104028 100644
--- a/src/arch/aarch64/hypervisor/handler.c
+++ b/src/arch/aarch64/hypervisor/handler.c
@@ -615,6 +615,17 @@
ffa_notifications_bitmap(args->arg3, args->arg4), false,
current);
return true;
+ case FFA_NOTIFICATION_SET_32:
+ *args = api_ffa_notification_set(
+ ffa_sender(*args), ffa_receiver(*args), args->arg2,
+ ffa_notifications_bitmap(args->arg3, args->arg4),
+ current);
+ return true;
+ case FFA_NOTIFICATION_GET_32:
+ *args = api_ffa_notification_get(
+ ffa_notifications_get_receiver(*args),
+ ffa_notifications_get_vcpu(*args), args->arg2, current);
+ return true;
}
return false;