Mate Toth-Pal | 3956a8a | 2018-08-03 17:18:47 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
Mate Toth-Pal | 3956a8a | 2018-08-03 17:18:47 +0200 | [diff] [blame] | 7 | |
| 8 | #include "tfm_nspm_svc_handler.h" |
Mate Toth-Pal | 3956a8a | 2018-08-03 17:18:47 +0200 | [diff] [blame] | 9 | #include "tfm_api.h" |
| 10 | #include "tfm_ns_svc.h" |
| 11 | |
Mate Toth-Pal | 3956a8a | 2018-08-03 17:18:47 +0200 | [diff] [blame] | 12 | /* SVC function implementations */ |
Marc Moreno Berengue | 2b328e9 | 2018-10-10 14:18:17 +0100 | [diff] [blame] | 13 | uint32_t tfm_nspm_svc_register_client_id(uint32_t client_id) |
Mate Toth-Pal | 3956a8a | 2018-08-03 17:18:47 +0200 | [diff] [blame] | 14 | { |
Marc Moreno Berengue | 2b328e9 | 2018-10-10 14:18:17 +0100 | [diff] [blame] | 15 | if (tfm_register_client_id(client_id) == TFM_SUCCESS) { |
| 16 | return 1; |
Mate Toth-Pal | 3956a8a | 2018-08-03 17:18:47 +0200 | [diff] [blame] | 17 | } |
Marc Moreno Berengue | 2b328e9 | 2018-10-10 14:18:17 +0100 | [diff] [blame] | 18 | |
Mate Toth-Pal | 3956a8a | 2018-08-03 17:18:47 +0200 | [diff] [blame] | 19 | return 0; |
| 20 | } |