diff options
author | Guo Ren <ren_guo@c-sky.com> | 2019-01-30 15:13:11 +0300 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2019-02-13 04:48:14 +0300 |
commit | 76d21d186a65523b08ea5f70302e2c29ee8f6a8d (patch) | |
tree | 0b8d869eb706911f0a7c38cac4d26e25f218b622 /arch/csky/include/asm/pgtable.h | |
parent | 0f231dcfc664aaafa75a006ee10e55f3ae0c9b3c (diff) | |
download | linux-76d21d186a65523b08ea5f70302e2c29ee8f6a8d.tar.xz |
csky: Fixup io-range page attribute for mmap("/dev/mem")
Some user space drivers need accessing IO address and IO remap need
SO(strong order) page-attribute to make IO operation correct. So we
need add SO-page-attr for all non-memory address.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Reported-by: Fan Xiaodong <xiaodong.fan@boyahualu.com>
Diffstat (limited to 'arch/csky/include/asm/pgtable.h')
-rw-r--r-- | arch/csky/include/asm/pgtable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/csky/include/asm/pgtable.h b/arch/csky/include/asm/pgtable.h index af7a7faa1010..dcea277c09ae 100644 --- a/arch/csky/include/asm/pgtable.h +++ b/arch/csky/include/asm/pgtable.h @@ -241,6 +241,11 @@ static inline pte_t pte_mkyoung(pte_t pte) #define pgd_index(address) ((address) >> PGDIR_SHIFT) +#define __HAVE_PHYS_MEM_ACCESS_PROT +struct file; +extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, + unsigned long size, pgprot_t vma_prot); + /* * Macro to make mark a page protection value as "uncacheable". Note * that "protection" is really a misnomer here as the protection value |