ARM: ignore memory below PHYS_OFFSET
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 11 Jan 2014 11:22:18 +0000 (11:22 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Jan 2014 16:42:12 +0000 (16:42 +0000)
commit571b14375019c3a66ef70d4d4a7083f4238aca30
treea5e0f283bca3a46eadc5061030c30a607d9b5377
parent1096813131dcfd7d86f156c14b43eb0fdbc090b6
ARM: ignore memory below PHYS_OFFSET

If the kernel is loaded higher in physical memory than normal, and we
calculate PHYS_OFFSET higher than the start of RAM, this leads to
boot problems as we attempt to map part of this RAM into userspace.
Rather than struggle with this, just truncate the mapping.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c