x86: cpa self-test, WARN_ON()
[wrt350n-kernel.git] / arch / arm / mm / mm.h
blob7647c597fc597ce82b5c08c587ca4b1f1c7b9724
1 /* the upper-most page table pointer */
3 #ifdef CONFIG_MMU
5 extern pmd_t *top_pmd;
7 #define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
9 static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt)
11 return pmd_offset(pgd, virt);
14 static inline pmd_t *pmd_off_k(unsigned long virt)
16 return pmd_off(pgd_offset_k(virt), virt);
19 struct mem_type {
20 unsigned int prot_pte;
21 unsigned int prot_pte_ext;
22 unsigned int prot_l1;
23 unsigned int prot_sect;
24 unsigned int domain;
27 const struct mem_type *get_mem_type(unsigned int type);
29 #endif
31 struct map_desc;
32 struct meminfo;
33 struct pglist_data;
35 void __init create_mapping(struct map_desc *md);
36 void __init bootmem_init(struct meminfo *mi);
37 void reserve_node_zero(struct pglist_data *pgdat);