ARM: 6750/1: improvements to compressed/head.S
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 21 Feb 2011 06:06:45 +0000 (07:06 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Feb 2011 17:24:22 +0000 (17:24 +0000)
commit6d7d0ae51574943bf571d269da3243257a2d15db
tree4899352ea39e5e52941ba41eceb4df3de4734b68
parent425fc47adb5bb69f76285be77a09a3341a30799e
ARM: 6750/1: improvements to compressed/head.S

In the case of a conflict between the memory used by the compressed
kernel with its decompressor code and the memory used for the
decompressed kernel, we currently store the later after the former and
relocate it afterwards.

This would be more efficient to do this the other way around i.e.
relocate the compressed data up front instead, resulting in a smaller
copy.  That also has the advantage of making the code smaller and more
straight forward.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/head.S