kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/xtensa_startup_stack' into 'master'
fix(system): fixed potential double exception when booting on xtensa Closes IDFGH-13515 See merge request espressif/esp-idf!33190pull/14684/head
commit
794cf2ea0e
|
@ -348,6 +348,11 @@ BaseType_t xPortStartScheduler( void )
|
|||
}
|
||||
#endif // configNUM_CORES > 1
|
||||
|
||||
// Windows contain references to the startup stack which will be reclaimed by the main task
|
||||
// Spill the windows to create a clean environment to ensure we do not carry over any such references
|
||||
// to invalid SPs which will cause problems if main_task does a windowoverflow to them
|
||||
xthal_window_spill();
|
||||
|
||||
// Cannot be directly called from C; never returns
|
||||
__asm__ volatile ("call0 _frxt_dispatch\n");
|
||||
|
||||
|
|
|
@ -108,6 +108,11 @@ BaseType_t xPortStartScheduler( void )
|
|||
|
||||
port_xSchedulerRunning[xPortGetCoreID()] = 1;
|
||||
|
||||
// Windows contain references to the startup stack which will be reclaimed by the main task
|
||||
// Spill the windows to create a clean environment to ensure we do not carry over any such references
|
||||
// to invalid SPs which will cause problems if main_task does a windowoverflow to them
|
||||
xthal_window_spill();
|
||||
|
||||
// Cannot be directly called from C; never returns
|
||||
__asm__ volatile ("call0 _frxt_dispatch\n");
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue