]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7628/1: head.S: map one extra section for the ATAG/DTB area
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 15 Jan 2013 17:51:32 +0000 (18:51 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 16 Jan 2013 16:51:13 +0000 (16:51 +0000)
commit090f33bd8bdc89063c691ab867ddb420891ed48e
treec66bfdaf4723ea6495e1b12df8c41f676b2fc102
parentacb8ca074beecbc0534ba565d82cfc068c18f329
ARM: 7628/1: head.S: map one extra section for the ATAG/DTB area

We currently use a temporary 1MB section aligned to a 1MB boundary for
mapping the provided device tree until the final page table is created.
However, if the device tree happens to cross that 1MB boundary, the end
of it remains unmapped and the kernel crashes when it attempts to access
it.  Given no restriction on the location of that DTB, it could end up
with only a few bytes mapped at the end of a section.

Solve this issue by mapping two consecutive sections.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Tomasz Figa <t.figa@samsung.com>
Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/head.S