summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/process_32.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-02-09 16:18:40 -0800
committerDavid S. Miller <davem@davemloft.net>2010-02-09 16:18:40 -0800
commitf036d9f3985a529a81e582f68aa984eb7b20d54d (patch)
treeeaf58cc5d2c81e3ca08e23b5cda76eacd515d166 /arch/sparc/kernel/process_32.c
parent6abce7711fcbd72b42f0c9632c1beccf4e674663 (diff)
downloadlinux-f036d9f3985a529a81e582f68aa984eb7b20d54d.tar.bz2
sparc: Align clone and signal stacks to 16 bytes.
This is mandatory for 64-bit processes, and doing it also for 32-bit processes saves a conditional in the compat case. This fixes the glibc/nptl/tst-stdio1 test case, as well as many others, on 64-bit. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/process_32.c')
-rw-r--r--arch/sparc/kernel/process_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c
index 2830b415e214..f23c8fda6503 100644
--- a/arch/sparc/kernel/process_32.c
+++ b/arch/sparc/kernel/process_32.c
@@ -526,7 +526,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
* Set some valid stack frames to give to the child.
*/
childstack = (struct sparc_stackf __user *)
- (sp & ~0x7UL);
+ (sp & ~0x15UL);
parentstack = (struct sparc_stackf __user *)
regs->u_regs[UREG_FP];