ARM: LPAE: Add identity mapping support for the 3-level page table format
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 22 Nov 2011 17:30:32 +0000 (17:30 +0000)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 6 Feb 2013 17:56:20 +0000 (19:56 +0200)
commit021f677dbf7cc59aaf15a0a6517a2533403fc6ee
treefda8e03aca20ecfab47af9002711bdc4ffaf8edb
parent9838b29d134605c0116d326804f776e8a1feecba
ARM: LPAE: Add identity mapping support for the 3-level page table format

With LPAE, the pgd is a separate page table with entries pointing to the
pmd. The identity_mapping_add() function needs to ensure that the pgd is
populated before populating the pmd level. The do..while blocks now loop
over the pmd in order to have the same implementation for the two page
table formats. The pmd_addr_end() definition has been removed and the
generic one used instead. The pmd clean-up is done in the pgd_free()
function.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/mm/idmap.c