diff options
Diffstat (limited to 'arch/arm/include/asm/pgtable.h')
-rw-r--r-- | arch/arm/include/asm/pgtable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index a757401129f9..48ce1b19069b 100644 --- a/arch/arm/include/asm/pgtable.h +++ b/arch/arm/include/asm/pgtable.h | |||
@@ -125,6 +125,9 @@ extern pgprot_t pgprot_s2_device; | |||
125 | #define pgprot_stronglyordered(prot) \ | 125 | #define pgprot_stronglyordered(prot) \ |
126 | __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED) | 126 | __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED) |
127 | 127 | ||
128 | #define pgprot_device(prot) \ | ||
129 | __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_DEV_SHARED | L_PTE_SHARED | L_PTE_DIRTY | L_PTE_XN) | ||
130 | |||
128 | #ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE | 131 | #ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE |
129 | #define pgprot_dmacoherent(prot) \ | 132 | #define pgprot_dmacoherent(prot) \ |
130 | __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE | L_PTE_XN) | 133 | __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE | L_PTE_XN) |