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
parent
928debc344
commit
7c0b2833ff
|
@ -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)
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue