Browse Source

add an abort for arm

Mike Frysinger 20 năm trước cách đây
mục cha
commit
ea0e3fa5e9
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      libc/stdlib/abort.c

+ 2 - 0
libc/stdlib/abort.c

@@ -34,6 +34,8 @@ Cambridge, MA 02139, USA.  */
 /* Our last ditch effort to commit suicide */
 #if defined(__alpha__)
 #define ABORT_INSTRUCTION asm ("call_pal 0")
+#elif defined(__arm__)
+#define ABORT_INSTRUCTION asm ("bl abort")
 #elif defined(__hppa__)
 #define ABORT_INSTRUCTION asm ("iitlbp %r0,(%r0)")
 #elif defined(__i386__)