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 shared/runtime/gchelper_generic: Fix AArch32 build on Clang. 2024-12-10 12:03:34 +11:00
gchelper_native.c shared/runtime/gchelper_native: Fix pointer cast on x86_64. 2022-11-08 19:15:37 +11:00
gchelper_rv32i.s shared/runtime/gchelper: Add RISC-V RV32I native gchelper. 2024-06-06 12:01:00 +10:00
gchelper_rv64i.s shared/runtime/gchelper_rv64i: Fix opcode sw/sd typo. 2024-10-03 11:40:10 +10:00
gchelper_thumb1.s shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
gchelper_thumb2.s shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
gchelper.h shared/runtime/gchelper: Add RISC-V RV64I native gchelper. 2024-08-07 16:23:21 +10:00
interrupt_char.c shared: Introduce new top-level dir and move 1st party lib code there. 2021-07-12 17:07:36 +10:00
interrupt_char.h shared: Introduce new top-level dir and move 1st party lib code there. 2021-07-12 17:07:36 +10:00
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 shared/runtime/semihosting_arm: Add mp_semihosting_exit. 2024-08-28 11:52:08 +10:00
semihosting_arm.h shared/runtime/semihosting_arm: Add mp_semihosting_exit. 2024-08-28 11:52:08 +10:00
semihosting_rv32.c shared/runtime/semihosting: Add RISC-V semihosting support. 2024-06-06 12:55:21 +10:00
semihosting_rv32.h shared/runtime/semihosting: Add RISC-V semihosting support. 2024-06-06 12:55:21 +10:00
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 shared: Introduce new top-level dir and move 1st party lib code there. 2021-07-12 17:07:36 +10:00
sys_stdio_mphal.c shared/runtime/sys_stdio_mphal: Fix printed type for stdio streams. 2024-09-06 17:00:35 +10:00