Merge branch 'v6v7' into devel
[linux/fpc-iii.git] / arch / arm / mm / mm.h
blob36960df5fb762a990be65bba9d92efba3657d8ed
1 #ifdef CONFIG_MMU
3 /* the upper-most page table pointer */
4 extern pmd_t *top_pmd;
6 #define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
8 static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt)
10 return pmd_offset(pgd, virt);
13 static inline pmd_t *pmd_off_k(unsigned long virt)
15 return pmd_off(pgd_offset_k(virt), virt);
18 struct mem_type {
19 pteval_t prot_pte;
20 unsigned int prot_l1;
21 unsigned int prot_sect;
22 unsigned int domain;
25 const struct mem_type *get_mem_type(unsigned int type);
27 extern void __flush_dcache_page(struct address_space *mapping, struct page *page);
29 #endif
31 void __init bootmem_init(void);
32 void arm_mm_memblock_reserve(void);