Skip to content

Commit

Permalink
arm64: pgtable: add support to map cacheable and non shareable memory
Browse files Browse the repository at this point in the history
Signed-off-by: Haiying Wang <Haiying.wang@freescale.com>
  • Loading branch information
Haiying Wang authored and Dong Aisheng committed Dec 12, 2022
1 parent 7d7bdd9 commit 62cd7e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ static inline void set_pud_at(struct mm_struct *mm, unsigned long addr,
#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)
#define pgprot_tagged(prot) \
Expand Down

0 comments on commit 62cd7e2

Please sign in to comment.