From 95cb6a982544ac79259a9345c4a5e58ef5d82fae Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Wed, 9 Oct 2024 17:39:24 +0300 Subject: [PATCH] zephyr: add Zephyr version of sof/init.h Add Zephyr version of sof/init.h. This is used define main entry points to the SOF application. The arch_init() entry point is not needed on Zephyr. Link: https://github.com/thesofproject/sof/issues/9015 Signed-off-by: Kai Vehmanen --- zephyr/include/sof/init.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 zephyr/include/sof/init.h diff --git a/zephyr/include/sof/init.h b/zephyr/include/sof/init.h new file mode 100644 index 000000000000..90c4c2ddb7a3 --- /dev/null +++ b/zephyr/include/sof/init.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * + * Copyright(c) 2016,2024 Intel Corporation. + */ + +#ifndef __SOF_INIT_H__ +#define __SOF_INIT_H__ + +/* main firmware entry point - argc and argv not currently used */ +#ifndef CONFIG_ARCH_POSIX +int main(int argc, char *argv[]); +#endif + +#if CONFIG_MULTICORE + +struct sof; + +int secondary_core_init(struct sof *sof); + +#endif /* CONFIG_MULTICORE */ + +#endif /* __SOF_INIT_H__ */