diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-27 19:57:38 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-28 13:54:45 +0100 |
commit | 8df6516864462cb7a6f87d5a46df68fb0faebbb5 (patch) | |
tree | 2db5634fa29b20bf6e64ce9446aef5a5e51b9c54 /arch/arm/mach-s5pv310/mach-smdkv310.c | |
parent | f25b4b4c89ff118df72421dd2cb080a6380896ac (diff) |
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 <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s5pv310/mach-smdkv310.c')
0 files changed, 0 insertions, 0 deletions