Anton Komlev | 95d3407 | 2023-08-23 15:59:26 +0100 | [diff] [blame] | 1 | /* |
Jamie Fox | 6d4ee16 | 2023-11-27 17:27:37 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2023, Arm Limited. All rights reserved. |
Anton Komlev | 95d3407 | 2023-08-23 15:59:26 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #include "test_app.h" |
| 9 | #include "tfm_log.h" |
Jamie Fox | 6d4ee16 | 2023-11-27 17:27:37 +0000 | [diff] [blame] | 10 | #include "os_wrapper/thread.h" |
Anton Komlev | 95d3407 | 2023-08-23 15:59:26 +0100 | [diff] [blame] | 11 | |
| 12 | /** |
| 13 | * \brief This symbol is the entry point provided by the PSA API compliance |
| 14 | * test libraries |
| 15 | */ |
| 16 | extern void val_entry(void); |
| 17 | |
| 18 | /** |
| 19 | * \brief Services test thread |
| 20 | * |
| 21 | */ |
| 22 | __attribute__((noreturn)) |
| 23 | void test_app(void *argument) |
| 24 | { |
| 25 | UNUSED_VARIABLE(argument); |
| 26 | |
| 27 | val_entry(); |
| 28 | |
| 29 | /* Output EOT char for test environments like FVP. */ |
| 30 | LOG_MSG("\x04"); |
| 31 | |
| 32 | /* End of test */ |
Jamie Fox | 6d4ee16 | 2023-11-27 17:27:37 +0000 | [diff] [blame] | 33 | os_wrapper_thread_exit(); |
Anton Komlev | 95d3407 | 2023-08-23 15:59:26 +0100 | [diff] [blame] | 34 | } |