blob: 7ab6017779f6c3fe5403663e70f5869ab330db0e [file] [log] [blame]
Anton Komlev94758d42023-06-15 16:39:36 +01001/*
Jackson Cooper-Driver290b88f2025-07-09 09:18:13 +01002 * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
Anton Komlev94758d42023-06-15 16:39:36 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#include "test_app.h"
Jackson Cooper-Driver290b88f2025-07-09 09:18:13 +01009#include "tfm_tests_log_msg.h"
David Hu479ef002023-10-20 14:44:32 +080010#ifdef TFM_NS_REG_TEST
Kevin Peng8532a442023-11-28 16:05:23 +080011#include "non_secure_suites.h"
David Hu479ef002023-10-20 14:44:32 +080012#endif
Jamie Fox6d4ee162023-11-27 17:27:37 +000013#include "os_wrapper/thread.h"
Anton Komlev94758d42023-06-15 16:39:36 +010014
15/**
16 * \brief Services test thread
17 *
18 */
19__attribute__((noreturn))
20void test_app(void *argument)
21{
22 UNUSED_VARIABLE(argument);
23
David Hu479ef002023-10-20 14:44:32 +080024#ifdef TFM_NS_REG_TEST
Kevin Peng8532a442023-11-28 16:05:23 +080025 ns_reg_test_start();
David Hu479ef002023-10-20 14:44:32 +080026#endif
Anton Komlev94758d42023-06-15 16:39:36 +010027
28 /* Output EOT char for test environments like FVP. */
29 LOG_MSG("\x04");
30
31 /* End of test */
Jamie Fox6d4ee162023-11-27 17:27:37 +000032 os_wrapper_thread_exit();
Anton Komlev94758d42023-06-15 16:39:36 +010033}