Skip to content

Commit

Permalink
ARM: add pgprot_cached and pgprot_cached_ns support
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhua Xie <jianhua.xie@nxp.com>
  • Loading branch information
Jianhua Xie authored and Dong Aisheng committed Dec 12, 2022
1 parent 5c8e1b6 commit 09a2f50
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ extern pgprot_t pgprot_kernel;
#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)

Expand Down

0 comments on commit 09a2f50

Please sign in to comment.