aboutsummaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorGravatar Eric Andersen <andersen@codepoet.org>2004-01-30 21:13:24 +0000
committerGravatar Eric Andersen <andersen@codepoet.org>2004-01-30 21:13:24 +0000
commitd0042aef4d627207e8fa338a7cd6c0c073690a15 (patch)
treef73f4f3d05f34f8c521eb3801487097d1621b8ee /libc/stdlib
parent9fdbd25eafb8a1871c5b2578ca4b315abad25c88 (diff)
downloaduClibc-d0042aef4d627207e8fa338a7cd6c0c073690a15.tar.gz
uClibc-d0042aef4d627207e8fa338a7cd6c0c073690a15.tar.bz2
Add missing abort instruction for powerpc
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/abort.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c
index a7d9f5575..2ecacdfad 100644
--- a/libc/stdlib/abort.c
+++ b/libc/stdlib/abort.c
@@ -29,7 +29,7 @@ Cambridge, MA 02139, USA. */
#include <errno.h>
-/* Our last ditch effort to commit suicide */
+/* Our last ditch effort to commit suicide */
#if defined(__i386__)
#define ABORT_INSTRUCTION asm ("hlt")
#elif defined(__ia64__)
@@ -44,6 +44,10 @@ Cambridge, MA 02139, USA. */
#define ABORT_INSTRUCTION asm ("unimp 0xf00")
#elif defined(__x86_64__)
#define ABORT_INSTRUCTION asm ("hlt")
+#elif defined(__hppa__)
+#define ABORT_INSTRUCTION asm ("iitlbp %r0,(%r0)")
+#elif defined(__powerpc__)
+#define ABORT_INSTRUCTION asm (".long 0")
#else
#define ABORT_INSTRUCTION
#endif