diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-01-31 03:02:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-01-31 03:02:39 +0000 |
commit | e4af8d3ee1547630290695c8645803b4b44fd413 (patch) | |
tree | 7c387bb1e8680b927012f05f7540e071dc1872ee /libc/stdlib | |
parent | 9ecc494576e2b20848134ca40c8a57798142c4a8 (diff) |
Patch from Paul Mundt, lethal at linux-sh dot org,
add sh/sh64: ABORT_INSTRUCTION definitions
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/abort.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c index 2ecacdfad..1ea1c4757 100644 --- a/libc/stdlib/abort.c +++ b/libc/stdlib/abort.c @@ -48,6 +48,10 @@ Cambridge, MA 02139, USA. */ #define ABORT_INSTRUCTION asm ("iitlbp %r0,(%r0)") #elif defined(__powerpc__) #define ABORT_INSTRUCTION asm (".long 0") +#elif defined(__SH5__) +#define ABORT_INSTRUCTION asm ("movi 0x10, r9; shori 0xff, r9; trapa r9") +#elif defined(__sh__) +#define ABORT_INSTRUCTION asm ("trapa #0xff") #else #define ABORT_INSTRUCTION #endif |