Linux 4.13.16
[linux/fpc-iii.git] / arch / powerpc / include / asm / book3s / pgtable.h
blob8b0f4a29259a9358733fc19e3bed24cfccaf86ab
1 #ifndef _ASM_POWERPC_BOOK3S_PGTABLE_H
2 #define _ASM_POWERPC_BOOK3S_PGTABLE_H
4 #ifdef CONFIG_PPC64
5 #include <asm/book3s/64/pgtable.h>
6 #else
7 #include <asm/book3s/32/pgtable.h>
8 #endif
10 #define FIRST_USER_ADDRESS 0UL
11 #ifndef __ASSEMBLY__
12 /* Insert a PTE, top-level function is out of line. It uses an inline
13 * low level function in the respective pgtable-* files
15 extern void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
16 pte_t pte);
19 #define __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
20 extern int ptep_set_access_flags(struct vm_area_struct *vma, unsigned long address,
21 pte_t *ptep, pte_t entry, int dirty);
23 struct file;
24 extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
25 unsigned long size, pgprot_t vma_prot);
26 #define __HAVE_PHYS_MEM_ACCESS_PROT
28 #endif /* __ASSEMBLY__ */
29 #endif