Browse Source

Patch from Paul Mundt, lethal at linux-sh dot org,
add sh/sh64: ABORT_INSTRUCTION definitions

Eric Andersen 20 years ago
parent
commit
e4af8d3ee1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libc/stdlib/abort.c

+ 4 - 0
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