Per Åstrand | 79929ff | 2021-01-26 14:42:43 +0100 | [diff] [blame] | 1 | /* |
Anton Moberg | fa3e51b | 2021-03-31 11:05:02 +0200 | [diff] [blame] | 2 | * Copyright (c) 2020-2021 Arm Limited. All rights reserved. |
Per Åstrand | 79929ff | 2021-01-26 14:42:43 +0100 | [diff] [blame] | 3 | * |
| 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 */ |
| 23 | extern "C" void nonsecure_print(const char *p); |
| 24 | |
| 25 | /* Run an inference on the secure side and return status */ |
| 26 | extern "C" int run_secure_inference(void); |
| 27 | |
Anton Moberg | 908a07c | 2021-04-08 09:50:57 +0200 | [diff] [blame^] | 28 | typedef int (*funcptr_ns)(void) __attribute__((cmse_nonsecure_call)); |
Per Åstrand | 79929ff | 2021-01-26 14:42:43 +0100 | [diff] [blame] | 29 | extern "C" void set_result_function(funcptr_ns callback_fn); |
| 30 | #endif // SECURE_ENTRIES_H__ |