(__vfork): Conditionally branch to __fork even if __NR_vfork is not defined.
authordrepper <drepper>
Wed, 15 Jan 2003 01:06:06 +0000 (01:06 +0000)
committerdrepper <drepper>
Wed, 15 Jan 2003 01:06:06 +0000 (01:06 +0000)
linuxthreads/sysdeps/unix/sysv/linux/arm/vfork.S

index 6092bd9..8d3338a 100644 (file)
@@ -32,9 +32,9 @@ rocess,
 
 ENTRY (__vfork)
 
 
 ENTRY (__vfork)
 
-#ifdef __NR_vfork
        SINGLE_THREAD_P
        bne     HIDDEN_JUMPTARGET (__fork)
        SINGLE_THREAD_P
        bne     HIDDEN_JUMPTARGET (__fork)
+#ifdef __NR_vfork
        swi     __NR_vfork
        cmn     a1, #4096
        RETINSTR(movcc, pc, lr)
        swi     __NR_vfork
        cmn     a1, #4096
        RETINSTR(movcc, pc, lr)