blob: 09d48fd6ddff5197874e7a7c40e0307c14d897c2 [file] [log] [blame]
Summer Qind0f42b12020-06-24 16:19:23 +08001/*
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))
13int32_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}