diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-23 16:13:02 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-12-11 09:53:13 +0000 |
commit | 1fd15b879d0075c8916e52fb9e52522827433d1f (patch) | |
tree | a9f950c9dd0eaf9de3c7d359d20bca783564630f /arch/arm/include/asm/pgtable-2level.h | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
download | linux-stable-1fd15b879d0075c8916e52fb9e52522827433d1f.tar.gz linux-stable-1fd15b879d0075c8916e52fb9e52522827433d1f.tar.bz2 linux-stable-1fd15b879d0075c8916e52fb9e52522827433d1f.zip |
ARM: add support to dump the kernel page tables
This patch allows the kernel page tables to be dumped via a debugfs file,
allowing kernel developers to check the layout of the kernel page tables
and the verify the various permissions and type settings.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/pgtable-2level.h')
-rw-r--r-- | arch/arm/include/asm/pgtable-2level.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable-2level.h b/arch/arm/include/asm/pgtable-2level.h index 86a659a19526..dfff709fda3c 100644 --- a/arch/arm/include/asm/pgtable-2level.h +++ b/arch/arm/include/asm/pgtable-2level.h @@ -160,6 +160,7 @@ static inline pmd_t *pmd_offset(pud_t *pud, unsigned long addr) return (pmd_t *)pud; } +#define pmd_large(pmd) (pmd_val(pmd) & 2) #define pmd_bad(pmd) (pmd_val(pmd) & 2) #define copy_pmd(pmdpd,pmdps) \ |