ARM: 6648/1: map ATAGs when not in first 1MB of RAM
authorRob Herring <rob.herring@calxeda.com>
Wed, 2 Feb 2011 15:33:17 +0000 (16:33 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 17 Feb 2011 23:27:33 +0000 (23:27 +0000)
commit4d901c4271951d110afb13ee9aa73d27a6c8e53d
tree3ac2bd52f6029f382399cf15cf35abe568401818
parentcada3c0841e1deaec4c0f92654610b028dc683ff
ARM: 6648/1: map ATAGs when not in first 1MB of RAM

If ATAGs or DTB pointer is not within first 1MB of RAM, then the boot params
will not be mapped early enough, so map the 1MB region that r2 points to. Only
map the first 1MB when r2 is 0.

Some assembly improvements from Nicolas Pitre.

Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/head.S