feat(rmm-eac4): modify RSI_IPA_STATE_SET command
Modifies RSI_IPA_STATE_SET command handler as per
RMM Specification 1.0-eac4 by adding 'response'
value returned in X2.
Fixes the handler by setting 'new_base' in X1.
Parameter 'exit_to_rec' of 'rsi_log_on_exit()'
function removed, and all return values are now
get printed regardless of RSI command returning
to Host or back to the REC.
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: I607c9ae269fefc3e28f10dec6f81d0f8d7e0c9cb
diff --git a/lib/realm/include/ripas.h b/lib/realm/include/ripas.h
index 2143d8f..4b6b58f 100644
--- a/lib/realm/include/ripas.h
+++ b/lib/realm/include/ripas.h
@@ -35,4 +35,15 @@
CHANGE_DESTROYED = RSI_CHANGE_DESTROYED
};
+/*
+ * The RmmRecResponse enumeration represents whether the Host accepted
+ * or rejected a Realm request.
+ *
+ * Map RmmRecResponse to RmiResponse to simplify check operation.
+ */
+enum ripas_response {
+ ACCEPT = RMI_ACCEPT, /* Host accepted Realm request */
+ REJECT = RMI_REJECT /* Host rejected Realm request */
+};
+
#endif /* RIPAS_H */