1 /*
2  * Copyright (c) 2020-2022, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #include "cmsis_compiler.h"
9 #include "service_api.h"
10 #include "psa/service.h"
11 #include "svc_num.h"
12 #include "utilities.h"
13 
14 __attribute__((naked))
tfm_core_get_boot_data(uint8_t major_type,struct tfm_boot_data * boot_status,uint32_t len)15 psa_status_t tfm_core_get_boot_data(uint8_t major_type,
16                                     struct tfm_boot_data *boot_status,
17                                     uint32_t len)
18 {
19     __ASM volatile(
20         "SVC    "M2S(TFM_SVC_GET_BOOT_DATA)"               \n"
21         "BX     lr                                         \n"
22         );
23 }
24 
25 #if TFM_ISOLATION_LEVEL != 1
26 /* Entry point when Partition FLIH functions return */
27 __attribute__((naked))
tfm_flih_func_return(psa_flih_result_t result)28 void tfm_flih_func_return(psa_flih_result_t result)
29 {
30     __ASM volatile("SVC "M2S(TFM_SVC_FLIH_FUNC_RETURN)"           \n"
31                    );
32 }
33 #endif /* TFM_ISOLATION_LEVEL != 1 */
34