diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-01-30 21:13:24 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-01-30 21:13:24 +0000 |
commit | d0042aef4d627207e8fa338a7cd6c0c073690a15 (patch) | |
tree | f73f4f3d05f34f8c521eb3801487097d1621b8ee /libc/stdlib/abort.c | |
parent | 9fdbd25eafb8a1871c5b2578ca4b315abad25c88 (diff) |
Add missing abort instruction for powerpc
Diffstat (limited to 'libc/stdlib/abort.c')
-rw-r--r-- | libc/stdlib/abort.c | 6 |
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 |