summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/pgtable-2level.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-10-23 16:13:02 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-12-11 09:53:13 +0000
commit1fd15b879d0075c8916e52fb9e52522827433d1f (patch)
treea9f950c9dd0eaf9de3c7d359d20bca783564630f /arch/arm/include/asm/pgtable-2level.h
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
downloadblackbird-op-linux-1fd15b879d0075c8916e52fb9e52522827433d1f.tar.gz
blackbird-op-linux-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.h1
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) \
OpenPOWER on IntegriCloud