From: Russell King Date: Wed, 27 Oct 2010 18:57:38 +0000 (+0100) Subject: ARM: memblock: setup lowmem mappings using memblock X-Git-Tag: v2.6.37-rc1~23^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8df6516864462cb7a6f87d5a46df68fb0faebbb5;p=pandora-kernel.git ARM: memblock: setup lowmem mappings using memblock Use memblock information to setup lowmem mappings rather than the membank array. This allows platforms to manipulate the memblock information during initialization to reserve (and remove) memory from the kernel's view of memory - and thus allowing platforms to setup their own private mappings for this memory without causing problems with multiple aliasing mappings: size = min(size, SZ_2M); base = memblock_alloc(size, min(align, SZ_2M)); memblock_free(base, size); memblock_remove(base, size); This is needed because multiple mappings of regions with differing attributes (sharability, type, cache) are not permitted with ARMv6 and above. Signed-off-by: Russell King --- Reading git-diff-tree failed