aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/unix/sysv/linux/m68k/clone.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/clone.S b/sysdeps/unix/sysv/linux/m68k/clone.S
index e19172a8f7..6baf723d9b 100644
--- a/sysdeps/unix/sysv/linux/m68k/clone.S
+++ b/sysdeps/unix/sysv/linux/m68k/clone.S
@@ -57,8 +57,9 @@ ENTRY (__clone)
thread_start:
subl %fp, %fp /* terminate the stack frame */
jsr (%a0)
- movel %d0, -(%sp)
- jbsr HIDDEN_JUMPTARGET (_exit)
+ movel %d0, %d1
+ movel #SYS_ify (exit), %d0
+ trap #0
PSEUDO_END (__clone)