]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 23:01:09 +0000 (16:01 -0700)
commit6c6a223088cf477b941fd57806dd0187ada219a0
treec2b857cfe680a7eb325594c17007a860b2815c84
parentd47325e5f164717e0b9f9158c5cd1b3acc30d7b3
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