-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xtensa is the only architecutre doing thing differently and introduces inconsistency in the init process and dependencies as we attemp to cleanup init levels and remove misused of SYS_INIT. Introduce prep_c for this architecture and align with other architectures. Signed-off-by: Anas Nashif <[email protected]>
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright (c) 2024 Intel Corporation. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#include <zephyr/kernel.h> | ||
#include <kernel_internal.h> | ||
|
||
extern FUNC_NORETURN void z_cstart(void); | ||
|
||
/** | ||
* | ||
* @brief Prepare to and run C code | ||
* | ||
* This routine prepares for the execution of and runs C code. | ||
* | ||
*/ | ||
void z_prep_c(void) | ||
{ | ||
z_cstart(); | ||
CODE_UNREACHABLE; | ||
} |