ARM: 7382/1: mm: truncate memory banks to fit in 4GB space for classic MMU
authorWill Deacon <will.deacon@arm.com>
Thu, 12 Apr 2012 16:15:08 +0000 (17:15 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 15 Apr 2012 21:00:30 +0000 (22:00 +0100)
commite5ab85800820edd907d3f43f285e1232f84d5a41
tree24a227ba56d28b732975b5ca96fbce70ece1eeac
parent9f85550347f51c79a917b2aec04c90691c11e20a
ARM: 7382/1: mm: truncate memory banks to fit in 4GB space for classic MMU

If a bank of memory spanning the 4GB boundary is added on a !CONFIG_LPAE
kernel then we will hang early during boot since the memory bank will
have wrapped around to zero.

This patch truncates memory banks for !LPAE configurations when the end
address is not representable in 32 bits.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c