Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove unneeded "post_boot_py" #10261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,12 +903,8 @@ static void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
#endif
}

port_post_boot_py(true);

cleanup_after_vm(_exec_result.exception);
_exec_result.exception = NULL;

port_post_boot_py(false);
}

static int run_repl(safe_mode_t safe_mode) {
Expand Down
6 changes: 0 additions & 6 deletions ports/espressif/supervisor/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,6 @@ void port_boot_info(void) {
}
#endif

void port_post_boot_py(bool heap_valid) {
if (!heap_valid && filesystem_present()) {
}
}


// Wrap main in app_main that the IDF expects.
extern void main(void);
extern void app_main(void);
Expand Down
1 change: 0 additions & 1 deletion ports/zephyr-cp/cptools/build_circuitpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ async def build_circuitpython():
portdir / "common-hal/microcontroller/Pin.c",
portdir / "common-hal/microcontroller/Processor.c",
portdir / "common-hal/os/__init__.c",
"supervisor/stub/misc.c",
"shared/readline/readline.c",
"shared/runtime/context_manager_helpers.c",
"shared/runtime/pyexec.c",
Expand Down
6 changes: 0 additions & 6 deletions supervisor/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ void port_wake_main_task_from_isr(void);
// CircuitPython task when others are done.
void port_yield(void);

// Some ports need special handling just after completing boot.py execution.
// This function is called once while boot.py's VM is still valid, and
// then a second time after the VM is finalized.
// A default weak implementation is provided that does nothing.
void port_post_boot_py(bool heap_valid);

// Some ports want to add information to boot_out.txt.
// A default weak implementation is provided that does nothing.
void port_boot_info(void);
Expand Down
13 changes: 0 additions & 13 deletions supervisor/stub/misc.c

This file was deleted.

1 change: 0 additions & 1 deletion supervisor/supervisor.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ SRC_SUPERVISOR = \
supervisor/shared/traceback.c \
supervisor/shared/translate/translate.c \
supervisor/shared/workflow.c \
supervisor/stub/misc.c \

# For tlsf
CFLAGS += -D_DEBUG=0
Expand Down
Loading