]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d00958474cb158f900593a0c05ea7f1a63f5c8c
tree24a227ba56d28b732975b5ca96fbce70ece1eeac
parent0147e39b78b921e4eeee3d8b9eb82c3c4a70784d
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