micropython/shared/runtime
Andrew Leech a6864109db shared/runtime/pyexec: Set PYEXEC_FORCED_EXIT flag for SystemExit.
When `MICROPY_PYEXEC_ENABLE_EXIT_CODE_HANDLING` is enabled, `SystemExit`
now sets the `PYEXEC_FORCED_EXIT` flag in addition to the exit code. This
allows the REPL to properly detect and exit when SystemExit is raised,
while still preserving the exit code in the lower bits.

Fixes `repl_lock.py` test which expects REPL to exit on `SystemExit`.

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
2025-11-22 00:06:59 +11:00
..
gchelper_generic.c
gchelper_native.c
gchelper_rv32i.s
gchelper_rv64i.s
gchelper_thumb1.s
gchelper_thumb2.s
gchelper.h
interrupt_char.c
interrupt_char.h
mpirq.c shared/runtime/mpirq: Check separate hard IRQ stack correctly. 2025-09-25 23:59:24 +10:00
mpirq.h shared/runtime/mpirq: Factor out mp_irq_dispatch() and use it. 2025-09-25 23:59:24 +10:00
pyexec.c shared/runtime/pyexec: Set PYEXEC_FORCED_EXIT flag for SystemExit. 2025-11-22 00:06:59 +11:00
pyexec.h shared/runtime: Set exit code according to the SystemExit exception. 2025-11-04 16:47:19 +11:00
semihosting_arm.c
semihosting_arm.h
semihosting_rv32.c
semihosting_rv32.h
softtimer.c shared/runtime/softtimer: Add support for hard callbacks. 2025-09-25 23:59:24 +10:00
softtimer.h shared/runtime/softtimer: Add support for hard callbacks. 2025-09-25 23:59:24 +10:00
stdout_helpers.c
sys_stdio_mphal.c