]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: LPAE: Add identity mapping support for the 3-level page table format
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 31 Jan 2011 13:50:44 +0000 (13:50 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 9 Aug 2011 14:31:00 +0000 (15:31 +0100)
commite4da9599c2af95edab2f1e6ae326f22f4afa99be
tree4b58a39f24caf50b8128e1391b8150c626231064
parentddb169f7ef998dc2442f9deb45959dadfaf5d5b9
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/include/asm/pgtable.h
arch/arm/mm/idmap.c