mescc: Mes C Library: Hang at the end if necessary.

* lib/linux/arm-mes-mescc/crt1.c (_start): Hang at the end if necessary.
This commit is contained in:
Danny Milosavljevic 2020-06-09 19:31:22 +02:00
parent 040220acee
commit d42f99e6cf
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -71,5 +71,7 @@ HOWEVER, the function entry already allocated space for locals on the stack (aft
asm ("SYS_exit mov____$i8,%r7"); asm ("SYS_exit mov____$i8,%r7");
asm ("swi____$0"); asm ("swi____$0");
asm ("hlt"); do {
asm ("wfi");
} while (1);
} }