File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -425,11 +425,9 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool *simulate_reset) {
425425 };
426426 #endif
427427
428- supervisor_allocation * pystack ;
428+ volatile supervisor_allocation * pystack = NULL ;
429429 #if MICROPY_ENABLE_PYSTACK
430430 pystack = allocate_pystack ();
431- #else
432- pystack = NULL ;
433431 #endif
434432 supervisor_allocation * heap = allocate_remaining_memory ();
435433 start_mp (heap , pystack );
@@ -776,11 +774,9 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
776774
777775 // Do USB setup even if boot.py is not run.
778776
779- volatile supervisor_allocation * pystack ;
777+ volatile supervisor_allocation * pystack = NULL ;
780778 #if MICROPY_ENABLE_PYSTACK
781779 pystack = allocate_pystack ();
782- #else
783- pystack = NULL ;
784780 #endif
785781 supervisor_allocation * heap = allocate_remaining_memory ();
786782 start_mp (heap , pystack );
@@ -884,11 +880,9 @@ STATIC int run_repl(void) {
884880 int exit_code = PYEXEC_FORCED_EXIT ;
885881 stack_resize ();
886882 filesystem_flush ();
887- supervisor_allocation * pystack ;
883+ volatile supervisor_allocation * pystack = NULL ;
888884 #if MICROPY_ENABLE_PYSTACK
889885 pystack = allocate_pystack ();
890- #else
891- pystack = NULL ;
892886 #endif
893887 supervisor_allocation * heap = allocate_remaining_memory ();
894888 start_mp (heap , pystack );
You can’t perform that action at this time.
0 commit comments