]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
binfmt_elf_fdpic: convert initial stack alignment to arch_align_stack()
authorPaul Mundt <lethal@linux-sh.org>
Thu, 16 Oct 2008 05:04:15 +0000 (22:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:46 +0000 (11:21 -0700)
commitc7637941d16ae426a94058fe3b5460a31f68f61b
tree61ae6860d2e58acf17ca2c3c774b99db6994a5a4
parentec23847d6cfe445ba9a1a5ec513297f4cc0ada53
binfmt_elf_fdpic: convert initial stack alignment to arch_align_stack()

binfmt_elf_fdpic seems to have grabbed a hard-coded hack from an ancient
version of binfmt_elf in order to try and fix up initial stack alignment
on multi-threaded x86, which while in addition to being unused, was also
pushed down beyond the first set of operations on the stack pointer,
negating the entire purpose.

These days, we have an architecture independent arch_align_stack(), so we
switch to using that instead. Move the initial alignment up before the
initial stores while we're at it.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/binfmt_elf_fdpic.c