SH: ABORT_INSTRUCTION

Thomas Schwinge thomas@codesourcery.com
Thu Jun 14 09:09:00 GMT 2012


Hi!

Despite libc-help's yesterday's discussion on a similar topic, and in
spirit of what other architectures are using, I plan to commit the
following, assuming Kaz agrees that the sleep instruction is a suitable
choice.

--- /dev/null	2012-06-09 04:02:54.835282588 +0200
+++ sysdeps/sh/abort-instr.h	2012-06-13 20:48:20.882921562 +0200
@@ -0,0 +1,2 @@
+/* An instruction which should crash any program is `sleep'.  */
+#define ABORT_INSTRUCTION asm ("sleep")


Grüße,
 Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120614/38d60355/attachment.sig>


More information about the Libc-alpha mailing list