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,7 +425,7 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool *simulate_reset) {
425425 };
426426 #endif
427427
428- volatile supervisor_allocation * pystack = NULL ;
428+ supervisor_allocation * pystack = ( supervisor_allocation * ) 1 ;
429429 #if MICROPY_ENABLE_PYSTACK
430430 pystack = allocate_pystack ();
431431 #endif
@@ -774,7 +774,7 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
774774
775775 // Do USB setup even if boot.py is not run.
776776
777- volatile supervisor_allocation * pystack = NULL ;
777+ supervisor_allocation * pystack = ( supervisor_allocation * ) 1 ;
778778 #if MICROPY_ENABLE_PYSTACK
779779 pystack = allocate_pystack ();
780780 #endif
@@ -880,7 +880,7 @@ STATIC int run_repl(void) {
880880 int exit_code = PYEXEC_FORCED_EXIT ;
881881 stack_resize ();
882882 filesystem_flush ();
883- volatile supervisor_allocation * pystack = NULL ;
883+ supervisor_allocation * pystack = ( supervisor_allocation * ) 1 ;
884884 #if MICROPY_ENABLE_PYSTACK
885885 pystack = allocate_pystack ();
886886 #endif
You can’t perform that action at this time.
0 commit comments