]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: LPAE: Page table maintenance for the 3-level format
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 31 Jan 2011 13:50:42 +0000 (13:50 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 20 Sep 2011 13:17:40 +0000 (14:17 +0100)
commited417749c581c8340a2884d812097a42b36b3cbe
tree652bff6a8a4a434b00e24bc4d51dc43d6f4b87fb
parentb477caaabe79a32b7fa4d54521bf77a9b71409b2
ARM: LPAE: Page table maintenance for the 3-level format

This patch modifies the pgd/pmd/pte manipulation functions to support
the 3-level page table format. Since there is no need for an 'ext'
argument to cpu_set_pte_ext(), this patch conditionally defines a
different prototype for this function when CONFIG_ARM_LPAE.

The patch also introduces the L_PGD_SWAPPER flag to mark pgd entries
pointing to pmd tables pre-allocated in the swapper_pg_dir and avoid
trying to free them at run-time. This flag is 0 with the classic page
table format.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/include/asm/pgalloc.h
arch/arm/include/asm/pgtable-3level.h
arch/arm/include/asm/pgtable.h
arch/arm/include/asm/proc-fns.h
arch/arm/mm/ioremap.c
arch/arm/mm/pgd.c