summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/abort.c4
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