Skip to content

Commit

Permalink
zephyr: add Zephyr version of sof/init.h
Browse files Browse the repository at this point in the history
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: #9015
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
  • Loading branch information
kv2019i authored and lgirdwood committed Oct 21, 2024
1 parent 0fcf38c commit c32a5e2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions zephyr/include/sof/init.h
Original file line number Diff line number Diff line change
@@ -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__ */

0 comments on commit c32a5e2

Please sign in to comment.