Shawn Shan | 6e7be07 | 2019-11-29 17:56:29 +0800 | [diff] [blame^] | 1 | /* |
2 | * Copyright (c) 2020, Arm Limited. All rights reserved. | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: BSD-3-Clause | ||||
5 | * | ||||
6 | */ | ||||
7 | #include <inttypes.h> | ||||
8 | #include "psa/lifecycle.h" | ||||
9 | #include "core/tfm_core_svc.h" | ||||
10 | |||||
11 | __attribute__((naked)) | ||||
12 | uint32_t psa_rot_lifecycle_state(void) | ||||
13 | { | ||||
14 | __ASM volatile("SVC %0 \n" | ||||
15 | "BX LR \n" | ||||
16 | : : "I" (TFM_SVC_PSA_LIFECYCLE)); | ||||
17 | } |