From e4af8d3ee1547630290695c8645803b4b44fd413 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 31 Jan 2004 03:02:39 +0000 Subject: Patch from Paul Mundt, lethal at linux-sh dot org, add sh/sh64: ABORT_INSTRUCTION definitions --- libc/stdlib/abort.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/stdlib/abort.c') 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 -- cgit v1.2.3