From 124783a57ce9c30f7663911598c1af8aadfb952e Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Sat, 21 Mar 2026 20:15:33 +0100 Subject: [PATCH] corrects exit --- port/moonlight/src/bootup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/port/moonlight/src/bootup.c b/port/moonlight/src/bootup.c index d212bcf..69df782 100644 --- a/port/moonlight/src/bootup.c +++ b/port/moonlight/src/bootup.c @@ -124,5 +124,7 @@ void _exit(int exit_code) { // Halt while (1) { __asm__ volatile ("wfi"); + // Incase periodic interrupts are scheduled (e.g. timer), additionaly jump to self + for (;;); } } \ No newline at end of file