1
0
Fork 0

arm64/pgtable: add support to map cacheable and non shareable memory

Signed-off-by: Haiying Wang <Haiying.wang@freescale.com>
5.4-rM2-2.2.x-imx-squashed
Haiying Wang 2015-08-08 07:25:02 -04:00 committed by Dong Aisheng
parent 928debc344
commit 7c0b2833ff
1 changed files with 2 additions and 0 deletions

View File

@ -421,6 +421,8 @@ static inline pmd_t pmd_mkdevmap(pmd_t pmd)
#define pgprot_cached(prot) \
__pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL) | \
PTE_PXN | PTE_UXN)
#define pgprot_cached_ns(prot) \
__pgprot(pgprot_val(pgprot_cached(prot)) ^ PTE_SHARED)
#define pgprot_device(prot) \
__pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_DEVICE_nGnRE) | PTE_PXN | PTE_UXN)
/*