mirror of
https://github.com/micropython/micropython.git
synced 2025-08-26 04:20:37 +02:00
py/persistentcode: Allow a port a custom commit function and track data.
Allows both MICROPY_PERSISTENT_CODE_TRACK_FUN_DATA and MP_PLAT_COMMIT_EXEC to be enabled at the same time. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -123,7 +123,7 @@ void mp_init(void) {
|
||||
MP_STATE_VM(mp_module_builtins_override_dict) = NULL;
|
||||
#endif
|
||||
|
||||
#if MICROPY_PERSISTENT_CODE_TRACK_FUN_DATA || MICROPY_PERSISTENT_CODE_TRACK_BSS_RODATA
|
||||
#if MICROPY_EMIT_MACHINE_CODE && (MICROPY_PERSISTENT_CODE_TRACK_FUN_DATA || MICROPY_PERSISTENT_CODE_TRACK_BSS_RODATA)
|
||||
MP_STATE_VM(persistent_code_root_pointers) = MP_OBJ_NULL;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user