xtensa: adapt soc code to use prep_c

Many xtensa target jump from soc code directly into cstart and depend on
architecture code being initialized in arch_kernel_init(). Instead of
jumping to cstart, jump to newly introduced prep_c similar to all other
architectures, where common platfotm initialization will happen.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-07-06 15:31:13 -04:00 committed by Carles Cufí
commit dbfbf0edba
7 changed files with 15 additions and 14 deletions

View file

@ -52,7 +52,7 @@ extern int _ext_ram_bss_start;
extern int _ext_ram_bss_end;
#endif
extern void z_cstart(void);
extern void z_prep_c(void);
extern void esp_reset_reason_init(void);
#ifdef CONFIG_SOC_ENABLE_APPCPU
@ -212,7 +212,7 @@ void IRAM_ATTR __esp_platform_start(void)
esp_intr_initialize();
/* Start Zephyr */
z_cstart();
z_prep_c();
CODE_UNREACHABLE;
}