From 71614e31fb570d075ea6ed98856f75a9c7e751ee Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 19 Dec 2001 00:21:31 +0000 Subject: [PATCH] (clone): Subtract stack bias from child stack pointer before passing it to clone syscall. --- sysdeps/unix/sysv/linux/sparc/sparc64/clone.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S b/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S index 957a928f36..a7c248b2e8 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S @@ -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