ARM: Mes C Library: Support abort.

* lib/stdlib/abort.c (abort): Support Arm.
* lib/arm-mes/arm.M1 (wfi): New macro.
This commit is contained in:
Jan Nieuwenhuizen 2019-03-03 18:08:38 +01:00
parent 705be3f917
commit 92d60477c5
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
2 changed files with 8 additions and 0 deletions

View File

@ -374,3 +374,5 @@ DEFINE add____$i32,%r2 04909fe5092092e0000000ea
# WERT: nop
# WERTD:
DEFINE strb___%r0,0x32(%ebp) 08909fe50b9089e00000c9e5000000ea
DEFINE wfi bf30

View File

@ -21,5 +21,11 @@
void
abort (void)
{
#if __arm__
asm ("wfi");
#else
asm ("hlt");
#endif
// not reached
exit (77);
}