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" |
Ken Liu | 1f345b0 | 2020-05-30 21:11:05 +0800 | [diff] [blame] | 9 | #include "tfm/tfm_core_svc.h" |
Shawn Shan | 6e7be07 | 2019-11-29 17:56:29 +0800 | [diff] [blame] | 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 | } |