Skip to content

Commit 336804f

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 4056f0c commit 336804f

File tree

7 files changed

+8
-0
lines changed

7 files changed

+8
-0
lines changed

soc/espressif/esp32/soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
extern void z_prep_c(void);
2020
extern void esp_reset_reason_init(void);
21+
extern FUNC_NORETURN void z_cstart(void);
2122

2223
void IRAM_ATTR __esp_platform_app_start(void)
2324
{

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)

soc/espressif/esp32s2/soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
extern void z_prep_c(void);
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/esp32s3/soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
extern void z_prep_c(void);
2020
extern void esp_reset_reason_init(void);
21+
extern FUNC_NORETURN void z_cstart(void);
2122

2223
static void IRAM_ATTR esp_errata(void)
2324
{

0 commit comments

Comments
 (0)