diff options
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/s390/s390-32/clone.S | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/s390/s390-64/clone.S | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/clone.S b/sysdeps/unix/sysv/linux/s390/s390-32/clone.S index 91c362a2e8..650384cbc9 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/clone.S +++ b/sysdeps/unix/sysv/linux/s390/s390-32/clone.S @@ -42,10 +42,10 @@ ENTRY(__clone) l %r5,100(%r15) /* load child_tid from stack */ l %r6,96(%r15) /* load tls from stack */ svc SYS_ify(clone) - l %r6,24(%r15) /* restore %r6 */ ltr %r2,%r2 /* check return code */ - jm SYSCALL_ERROR_LABEL jz thread_start + l %r6,24(%r15) /* restore %r6 */ + jm SYSCALL_ERROR_LABEL br %r14 error: lhi %r2,-EINVAL diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/clone.S b/sysdeps/unix/sysv/linux/s390/s390-64/clone.S index 5150540f4e..fdeb4c806f 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/clone.S +++ b/sysdeps/unix/sysv/linux/s390/s390-64/clone.S @@ -43,10 +43,10 @@ ENTRY(__clone) lg %r5,168(%r15) /* load child_tid from stack */ l %r6,160(%r15) /* load tls from stack */ svc SYS_ify(clone) - lg %r6,48(%r15) /* restore %r6 */ ltgr %r2,%r2 /* check return code */ - jgm SYSCALL_ERROR_LABEL jz thread_start + lg %r6,48(%r15) /* restore %r6 */ + jgm SYSCALL_ERROR_LABEL br %r14 error: lghi %r2,-EINVAL |