]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(clone): Subtract stack bias from child stack pointer before passing it to
authorUlrich Drepper <drepper@redhat.com>
Wed, 19 Dec 2001 00:21:31 +0000 (00:21 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 19 Dec 2001 00:21:31 +0000 (00:21 +0000)
clone syscall.

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

index 957a928f368e4c5dc40b81233967993fc0bf864c..a7c248b2e84c39694a0c25a6127c92500b11a7fd 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