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: thesofproject#9015
Signed-off-by: Kai Vehmanen <[email protected]>
  • Loading branch information
kv2019i committed Oct 18, 2024
1 parent 329d889 commit d24f3f4
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 d24f3f4

Please sign in to comment.