| 1234567891011121314151617181920212223242526 |
- From 395718e9f6445369089dba16fa50182c5e0528f5 Mon Sep 17 00:00:00 2001
- From: Jianhua Xie <[email protected]>
- Date: Fri, 29 Jan 2016 16:40:46 +0800
- Subject: [PATCH] arm: add pgprot_cached and pgprot_cached_ns support
- Signed-off-by: Jianhua Xie <[email protected]>
- ---
- arch/arm/include/asm/pgtable.h | 7 +++++++
- 1 file changed, 7 insertions(+)
- --- a/arch/arm/include/asm/pgtable.h
- +++ b/arch/arm/include/asm/pgtable.h
- @@ -116,6 +116,13 @@ extern pgprot_t pgprot_s2_device;
- #define pgprot_noncached(prot) \
- __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED)
-
- +#define pgprot_cached(prot) \
- + __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_DEV_CACHED)
- +
- +#define pgprot_cached_ns(prot) \
- + __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_DEV_CACHED | \
- + L_PTE_MT_DEV_NONSHARED)
- +
- #define pgprot_writecombine(prot) \
- __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE)
-
|