]> git.baikalelectronics.ru Git - kernel.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)
commit34e1954d5c90911a30cb5ee040e605a50e64298d
tree61ae6860d2e58acf17ca2c3c774b99db6994a5a4
parentf7689a110e1d92a5b997ec8a70604c1398058941
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