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)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 6 Feb 2013 17:56:28 +0000 (19:56 +0200)
commit52ab847c6485c287f70d5d5ff73fdb2ffef2a1c7
treef4bd3449914ae544912263d4ca2003a025fa083d
parent021f677dbf7cc59aaf15a0a6517a2533403fc6ee
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