blob: 2d2df21acea69cf6a2ebfa949a9b0a95991fbe66 [file] [log] [blame]
Anton Komlev94758d42023-06-15 16:39:36 +01001/*
Jamie Fox6d4ee162023-11-27 17:27:37 +00002 * Copyright (c) 2017-2023, Arm Limited. All rights reserved.
Anton Komlev94758d42023-06-15 16:39:36 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#include "test_app.h"
9#include "tfm_log.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}