]> git.baikalelectronics.ru Git - kernel.git/commit
ppc: fix AT_VECTOR_SIZE on arch/ppc
authorGrant Likely <grant.likely@secretlab.ca>
Mon, 22 Oct 2007 22:38:32 +0000 (16:38 -0600)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 23 Oct 2007 02:18:54 +0000 (19:18 -0700)
commit4013a82728d8bba02a0a8c92c8108445b75bcd20
tree37786f6852c3f59df71dddc109915c05cd4ef003
parentf1a4ef3b3e3128b5e07e2302cb66de9b96012d4e
ppc: fix AT_VECTOR_SIZE on arch/ppc

Commit 91c53708e039ed2c7343fd76d018c94a9963f9b7 ("increase
AT_VECTOR_SIZE to terminate saved_auxv properly") changes the size of
AT_VECTOR_SIZE from hard coded '44' to a calculation based on the value
of AT_VECTOR_SIZE_ARCH and AT_VECTOR_SIZE_BASE.

The change works for arch/powerpc, but it breaks arch/ppc because the
needed AT_VECTOR_SIZE_ARCH is not present in include/asm-ppc/system.h
and a default value of 0 is used instead.  This results in
AT_VECTOR_SIZE being too small and it causes a kernel crash on loading
init.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-ppc/system.h