1 /*
2  * Copyright (c) 2023 Cypress Semiconductor Corporation (an Infineon company)
3  * or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  *
7  */
8 
9 /* This file provides implementation of TF-M NS os wrapper functions for the
10  * bare metal use case.
11  *
12  * \note  This implementation does not provide multithread safety, so it
13  *        shouldn't be used in RTOS environment.
14  */
15 
16 #include "tfm_ns_interface.h"
17 
tfm_ns_interface_dispatch(veneer_fn fn,uint32_t arg0,uint32_t arg1,uint32_t arg2,uint32_t arg3)18 int32_t tfm_ns_interface_dispatch(veneer_fn fn,
19                                   uint32_t arg0, uint32_t arg1,
20                                   uint32_t arg2, uint32_t arg3)
21 {
22     return fn(arg0, arg1, arg2, arg3);
23 }
24