mirror of https://github.com/hak5/openwrt-owl.git
27 lines
902 B
Diff
27 lines
902 B
Diff
From 31a5b5189bdd33bb87f88320964a47c0da983af2 Mon Sep 17 00:00:00 2001
|
|
From: Jianhua Xie <jianhua.xie@nxp.com>
|
|
Date: Fri, 29 Jan 2016 16:40:46 +0800
|
|
Subject: [PATCH 10/70] arm: add pgprot_cached and pgprot_cached_ns support
|
|
|
|
Signed-off-by: Jianhua Xie <jianhua.xie@nxp.com>
|
|
---
|
|
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)
|
|
|