aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S
index 9a0f53e99e..5fb7868c31 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S
@@ -38,7 +38,7 @@ ENTRY (__vfork)
bnslr+
/* Check if vfork syscall is known at all. */
cmpwi r3,ENOSYS
- bne JUMPTARGET(__syscall_error)
+ bne- .Lsyscall_error
# endif
#endif
@@ -47,7 +47,10 @@ ENTRY (__vfork)
/* If we don't have vfork, fork is close enough. */
DO_CALL (SYS_ify (fork))
- PSEUDO_RET
+ bnslr+
+
+.Lsyscall_error:
+ b JUMPTARGET(__syscall_error)
#endif
PSEUDO_END (__vfork)