blob: 7378cc43ffb8f61413a80c3f7e56bca72a3879e4 [file] [log] [blame]
Per Åstrand79929ff2021-01-26 14:42:43 +01001/*
Anton Mobergfa3e51b2021-03-31 11:05:02 +02002 * Copyright (c) 2020-2021 Arm Limited. All rights reserved.
Per Åstrand79929ff2021-01-26 14:42:43 +01003 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Licensed under the Apache License, Version 2.0 (the License); you may
7 * not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19#ifndef SECURE_ENTRIES_H__
20#define SECURE_ENTRIES_H__
21
22/* output a string on secure side stdio */
23extern "C" void nonsecure_print(const char *p);
24
25/* Run an inference on the secure side and return status */
26extern "C" int run_secure_inference(void);
27
Anton Moberg908a07c2021-04-08 09:50:57 +020028typedef int (*funcptr_ns)(void) __attribute__((cmse_nonsecure_call));
Per Åstrand79929ff2021-01-26 14:42:43 +010029extern "C" void set_result_function(funcptr_ns callback_fn);
30#endif // SECURE_ENTRIES_H__