feat(tftf): TFTF Realm extension enhancement

Adds randomisation of SMC RMI commands parameters
and checking of X4-X7 return values as per SMCCC v1.2.

Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: I7a332db873d2bd6cb400c5bf97ef0b8e9792b2d4
diff --git a/include/lib/utils_def.h b/include/lib/utils_def.h
index 9638495..9dcf58d 100644
--- a/include/lib/utils_def.h
+++ b/include/lib/utils_def.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2022, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2022, Arm Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -178,4 +178,7 @@
 		unsigned char reserved##end[end - start]; \
 	}
 
+#define CONCAT(x, y)	x##y
+#define CONC(x, y)	CONCAT(x, y)
+
 #endif /* UTILS_DEF_H */
diff --git a/include/runtime_services/host_realm_managment/host_realm_helper.h b/include/runtime_services/host_realm_managment/host_realm_helper.h
index a103630..255f257 100644
--- a/include/runtime_services/host_realm_managment/host_realm_helper.h
+++ b/include/runtime_services/host_realm_managment/host_realm_helper.h
@@ -18,5 +18,7 @@
 bool host_destroy_realm(void);
 bool host_enter_realm_execute(uint8_t cmd);
 
+test_result_t host_cmp_result(void);
+
 #endif /* HOST_REALM_HELPER_H */
 
diff --git a/include/runtime_services/host_realm_managment/host_realm_rmi.h b/include/runtime_services/host_realm_managment/host_realm_rmi.h
index 4e5f8c6..dd646f7 100644
--- a/include/runtime_services/host_realm_managment/host_realm_rmi.h
+++ b/include/runtime_services/host_realm_managment/host_realm_rmi.h
@@ -502,6 +502,8 @@
 		u_register_t  level,
 		u_register_t  start,
 		uint64_t  end);
-
+test_result_t realm_cmp_result(void);
+void rmi_init_cmp_result(void);
+bool rmi_get_cmp_result(void);
 
 #endif /* HOST_REALM_RMI_H */