Summer Qin | d0f42b1 | 2020-06-24 16:19:23 +0800 | [diff] [blame^] | 1 | /* |
2 | * Copyright (c) 2020, 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 "tfm/tfm_core_svc.h" | ||||
11 | |||||
12 | __attribute__((naked)) | ||||
13 | int32_t tfm_core_get_boot_data(uint8_t major_type, | ||||
14 | struct tfm_boot_data *boot_status, | ||||
15 | uint32_t len) | ||||
16 | { | ||||
17 | __ASM volatile( | ||||
18 | "SVC %0\n" | ||||
19 | "BX lr\n" | ||||
20 | : : "I" (TFM_SVC_GET_BOOT_DATA)); | ||||
21 | } |