]> Pileus Git - ~andy/linux/commit
ARM: mm: use physical addresses in highmem sanity checks
authorCyril Chemparathy <cyril@ti.com>
Fri, 20 Jul 2012 16:01:23 +0000 (12:01 -0400)
committerWill Deacon <will.deacon@arm.com>
Thu, 30 May 2013 15:02:18 +0000 (16:02 +0100)
commit82f667046ec895552caf2f7a4c6841c530bfc215
treea9ebf45fc7606fd6c8b8c7d5bce643a6527de454
parent4756dcbfd37819a8359d3c69a22be2ee41666d0f
ARM: mm: use physical addresses in highmem sanity checks

This patch modifies the highmem sanity checking code to use physical addresses
instead.  This change eliminates the wrap-around problems associated with the
original virtual address based checks, and this simplifies the code a bit.

The one constraint imposed here is that low physical memory must be mapped in
a monotonically increasing fashion if there are multiple banks of memory,
i.e., x < y must => pa(x) < pa(y).

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Subash Patel <subash.rp@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/mm/mmu.c