diff --git a/lib/linux/arm-mes-mescc/crt1.c b/lib/linux/arm-mes-mescc/crt1.c index ffaca8ae..8b16d7bf 100644 --- a/lib/linux/arm-mes-mescc/crt1.c +++ b/lib/linux/arm-mes-mescc/crt1.c @@ -71,5 +71,7 @@ HOWEVER, the function entry already allocated space for locals on the stack (aft asm ("SYS_exit mov____$i8,%r7"); asm ("swi____$0"); - asm ("hlt"); + do { + asm ("wfi"); + } while (1); }