]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: LPAE: mark memory banks with start > ULONG_MAX as highmem
authorWill Deacon <will.deacon@arm.com>
Tue, 22 Nov 2011 17:30:32 +0000 (17:30 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 8 Dec 2011 10:33:28 +0000 (10:33 +0000)
commitc9f79b0825eb51c374bc945c9a8ae850eb24f987
tree2f7f3488ecd409d872dc427e8050f97fc8fe5f27
parent85e7b39887aa66080954e31c605cb79c380994a9
ARM: LPAE: mark memory banks with start > ULONG_MAX as highmem

Memory banks living outside of the 32-bit physical address
space do not have a 1:1 pa <-> va mapping and therefore the
__va macro may wrap.

This patch ensures that such banks are marked as highmem so
that the Kernel doesn't try to split them up when it sees that
the wrapped virtual address overlaps the vmalloc space.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
arch/arm/mm/mmu.c