Julian Hall | 8cff2b8 | 2020-11-23 18:12:17 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <service_locator.h> |
| 8 | #include <service/locator/standalone/services/crypto/crypto_service_context.h> |
| 9 | #include "standalone_location_strategy.h" |
| 10 | #include "standalone_service_registry.h" |
| 11 | |
| 12 | void service_locator_envinit(void) |
| 13 | { |
| 14 | static crypto_service_context crypto_context("sn:trustedfirmware.org:crypto:0"); |
| 15 | standalone_service_registry::instance()->regsiter_service_instance(&crypto_context); |
| 16 | service_locator_register_strategy(standalone_location_strategy()); |
| 17 | } |