(clone): Subtract stack bias from child stack pointer before passing it to
authordrepper <drepper>
Wed, 19 Dec 2001 00:20:53 +0000 (00:20 +0000)
committerdrepper <drepper>
Wed, 19 Dec 2001 00:20:53 +0000 (00:20 +0000)
clone syscall.

sysdeps/unix/sysv/linux/sparc/sparc64/clone.S

index 957a928..a7c248b 100644 (file)
@@ -40,7 +40,7 @@ __clone:
         mov    %i3, %l3                /* save arg */
 
        /* Do the system call */
-       mov     %i1, %o1
+       sub     %i1, 0x7ff, %o1
        mov     %i2, %o0
        set     __NR_clone, %g1
        ta      0x6d