Skip to content

Commit 42021e2

Browse files
committed
soc: espressif: declare z_cstart
Declare z_cstart as extern as otherwise we will need to pull in kernel_internal.h. Signed-off-by: Anas Nashif <[email protected]>
1 parent 1e6348c commit 42021e2

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

soc/espressif/esp32c2/soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <zephyr/arch/common/init.h>
1717

1818
extern void esp_reset_reason_init(void);
19+
extern FUNC_NORETURN void z_cstart(void);
1920

2021
void IRAM_ATTR __esp_platform_app_start(void)
2122
{

soc/espressif/esp32c3/soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <zephyr/arch/common/init.h>
1818

1919
extern void esp_reset_reason_init(void);
20+
extern FUNC_NORETURN void z_cstart(void);
2021

2122
void IRAM_ATTR __esp_platform_app_start(void)
2223
{

soc/espressif/esp32c6/soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <zephyr/arch/common/init.h>
1717

1818
extern void esp_reset_reason_init(void);
19+
extern FUNC_NORETURN void z_cstart(void);
1920

2021
void IRAM_ATTR __esp_platform_app_start(void)
2122
{

soc/espressif/esp32c6/soc_lpcore.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <zephyr/toolchain.h>
78
#include "soc/soc_caps.h"
89
#include "esp_rom_caps.h"
910
#include "rom/ets_sys.h"
@@ -14,6 +15,7 @@
1415
#include <soc.h>
1516

1617
extern void main(void);
18+
extern FUNC_NORETURN void z_cstart(void);
1719

1820
/* Initialize lp core related system functions before calling user's main*/
1921
void lp_core_startup(void)

0 commit comments

Comments
 (0)