ARM: Fix decompressor's kernel size estimation for ROM=y
commit5f1cbd20c51c81c6ca7a479551471327d85fae85
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 25 Feb 2010 23:56:38 +0000 (25 23:56 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:58:03 +0000 (1 15:58 -0700)
tree75ebf31f7267c90ed0c67e0496912fd576111d4e
parente99a084b767971afec5449db8143353062800264
ARM: Fix decompressor's kernel size estimation for ROM=y

commit 98e12b5a6e05413420a7e3b3eca7fbfc2ff41b6d upstream.

Commit 2552fc2 changed the way the decompressor decides if it is safe
to decompress the kernel directly to its final location.  Unfortunately,
it took the top of the compressed data as being the stack pointer,
which it is for ROM=n cases.  However, for ROM=y, the stack pointer
is not relevant, and results in the wrong answer.

Fix this by explicitly storing the end of the biggybacked data in the
decompressor, and use that to calculate the compressed image size.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/boot/compressed/head.S
arch/arm/boot/compressed/vmlinux.lds.in