File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed 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) {
425
425
};
426
426
#endif
427
427
428
- supervisor_allocation * pystack ;
428
+ volatile supervisor_allocation * pystack = NULL ;
429
429
#if MICROPY_ENABLE_PYSTACK
430
430
pystack = allocate_pystack ();
431
- #else
432
- pystack = NULL ;
433
431
#endif
434
432
supervisor_allocation * heap = allocate_remaining_memory ();
435
433
start_mp (heap , pystack );
@@ -776,11 +774,9 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
776
774
777
775
// Do USB setup even if boot.py is not run.
778
776
779
- volatile supervisor_allocation * pystack ;
777
+ volatile supervisor_allocation * pystack = NULL ;
780
778
#if MICROPY_ENABLE_PYSTACK
781
779
pystack = allocate_pystack ();
782
- #else
783
- pystack = NULL ;
784
780
#endif
785
781
supervisor_allocation * heap = allocate_remaining_memory ();
786
782
start_mp (heap , pystack );
@@ -884,11 +880,9 @@ STATIC int run_repl(void) {
884
880
int exit_code = PYEXEC_FORCED_EXIT ;
885
881
stack_resize ();
886
882
filesystem_flush ();
887
- supervisor_allocation * pystack ;
883
+ volatile supervisor_allocation * pystack = NULL ;
888
884
#if MICROPY_ENABLE_PYSTACK
889
885
pystack = allocate_pystack ();
890
- #else
891
- pystack = NULL ;
892
886
#endif
893
887
supervisor_allocation * heap = allocate_remaining_memory ();
894
888
start_mp (heap , pystack );
You can’t perform that action at this time.
0 commit comments