Add mm communicate service location strategy
To support service discovery and RPC session extablishment
for SMM services reached via MM Communicate, a new service
location strategy and service context has been added to the
service locator. Client applications that need to use say the
smm-variable service can now use the service locator to
set-up a session.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I4a97af4763c6a48b9dbe2dcf87ec2c79654131de
diff --git a/components/service/locator/linux/linux_env.c b/components/service/locator/linux/linux_env.c
index cb940f4..4bef301 100644
--- a/components/service/locator/linux/linux_env.c
+++ b/components/service/locator/linux/linux_env.c
@@ -1,18 +1,19 @@
/*
- * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <service_locator.h>
#include <service/locator/linux/ffa/linuxffa_location_strategy.h>
-
+#include <service/locator/linux/mm_communicate/mm_communicate_location_strategy.h>
void service_locator_envinit(void)
{
- /*
- * Register all service location strategies that could be used
- * to locate services from Linux userspace.
- */
- service_locator_register_strategy(linuxffa_location_strategy());
-}
\ No newline at end of file
+ /*
+ * Register all service location strategies that could be used
+ * to locate services from Linux userspace.
+ */
+ service_locator_register_strategy(linuxffa_location_strategy());
+ service_locator_register_strategy(mm_communicate_location_strategy());
+}