]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Fix decompressor's kernel size estimation for ROM=y
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 25 Feb 2010 23:56:38 +0000 (23:56 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 26 Feb 2010 00:10:47 +0000 (00:10 +0000)
commit29f88dbb839142a26543a8a6bd5fe67b6b51014c
tree0d8e2d7f6dab7baf96da5a32678bd85095778853
parent906aed9f194f3ac700c47a1b78a087bb0999e971
ARM: Fix decompressor's kernel size estimation for ROM=y

Commit 89ab6bd 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.

CC: <stable@kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/head.S
arch/arm/boot/compressed/vmlinux.lds.in