]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/sh/makecontext.S
SH: ABORT_INSTRUCTION.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / sh / makecontext.S
index a847bb60b69d0833e76fa15c4332d1ab39c5eacb..ec9ce916934986f5ce04394e7e20a9baaa8b4c9d 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
+#include <abort-instr.h>
 
 #include "ucontext_i.h"
 
@@ -124,9 +125,9 @@ ENTRY(__makecontext)
 #endif
        jsr     @r1
         mov    r0, r4
-0:
-       bra     0b
-        nop
+       /* The 'exit' call should never return.  In case it does cause the
+          process to terminate.  */
+       ABORT_INSTRUCTION_ASM
 
        .align  2
 #ifdef PIC