kernel: bump to 4.4.39
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 3034-arm64-add-support-to-remap-kernel-cacheable-memory-t.patch
1 From 52bffb91d40a3090ecf9138fadca97f77c99afa4 Mon Sep 17 00:00:00 2001
2 From: Haiying Wang <Haiying.Wang@freescale.com>
3 Date: Wed, 22 Apr 2015 13:09:47 -0400
4 Subject: [PATCH 34/70] arm64: add support to remap kernel cacheable memory to
5 userspace
6
7 Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
8 Change-Id: I50ee4798a2929932fa9ff7c9cdb42cd1a215f77a
9 Reviewed-on: http://git.am.freescale.net:8181/35488
10 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
11 Reviewed-by: Roy Pledge <roy.pledge@freescale.com>
12 Reviewed-by: Stuart Yoder <stuart.yoder@freescale.com>
13 ---
14 arch/arm64/include/asm/pgtable.h | 3 +++
15 1 file changed, 3 insertions(+)
16
17 --- a/arch/arm64/include/asm/pgtable.h
18 +++ b/arch/arm64/include/asm/pgtable.h
19 @@ -389,6 +389,9 @@ static inline int has_transparent_hugepa
20 __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_DEVICE_nGnRnE) | PTE_PXN | PTE_UXN)
21 #define pgprot_writecombine(prot) \
22 __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL_NC) | PTE_PXN | PTE_UXN)
23 +#define pgprot_cached(prot) \
24 + __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL) | \
25 + PTE_PXN | PTE_UXN)
26 #define pgprot_device(prot) \
27 __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_DEVICE_nGnRE) | PTE_PXN | PTE_UXN)
28 #define __HAVE_PHYS_MEM_ACCESS_PROT