Shawn Shan | 6e7be07 | 2019-11-29 17:56:29 +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. |
Shawn Shan | 6e7be07 | 2019-11-29 17:56:29 +0800 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | #include <inttypes.h> |
| 8 | #include "psa/lifecycle.h" |
Kevin Peng | fc7b771 | 2021-05-08 13:42:56 +0800 | [diff] [blame] | 9 | #include "svc_num.h" |
| 10 | #include "tfm_hal_device_header.h" |
Shawn Shan | 6e7be07 | 2019-11-29 17:56:29 +0800 | [diff] [blame] | 11 | |
| 12 | __attribute__((naked)) |
| 13 | uint32_t psa_rot_lifecycle_state(void) |
| 14 | { |
| 15 | __ASM volatile("SVC %0 \n" |
| 16 | "BX LR \n" |
| 17 | : : "I" (TFM_SVC_PSA_LIFECYCLE)); |
| 18 | } |