Summer Qin | d0f42b1 | 2020-06-24 16:19:23 +0800 | [diff] [blame] | 1 | /* |
Kevin Peng | fc7b771 | 2021-05-08 13:42:56 +0800 | [diff] [blame] | 2 | * Copyright (c) 2020-2021, Arm Limited. All rights reserved. |
Summer Qin | d0f42b1 | 2020-06-24 16:19:23 +0800 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #include "cmsis_compiler.h" |
| 9 | #include "service_api.h" |
Kevin Peng | fc7b771 | 2021-05-08 13:42:56 +0800 | [diff] [blame] | 10 | #ifdef TFM_PSA_API |
| 11 | #include "svc_num.h" |
| 12 | #else |
| 13 | #include "tfm_core_svc.h" |
| 14 | #endif /* TFM_PSA_API */ |
Summer Qin | d0f42b1 | 2020-06-24 16:19:23 +0800 | [diff] [blame] | 15 | |
| 16 | __attribute__((naked)) |
| 17 | int32_t tfm_core_get_boot_data(uint8_t major_type, |
| 18 | struct tfm_boot_data *boot_status, |
| 19 | uint32_t len) |
| 20 | { |
| 21 | __ASM volatile( |
| 22 | "SVC %0\n" |
| 23 | "BX lr\n" |
| 24 | : : "I" (TFM_SVC_GET_BOOT_DATA)); |
| 25 | } |