blob: a44e3097063544315b14d43acc29a575385561cf [file] [log] [blame]
Russell King1b2e2b72006-08-21 17:06:38 +01001/* the upper-most page table pointer */
Russell King3ff15592006-11-30 13:53:54 +00002
3#ifdef CONFIG_MMU
4
Russell King1b2e2b72006-08-21 17:06:38 +01005extern pmd_t *top_pmd;
6
7#define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
8
9static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt)
10{
11 return pmd_offset(pgd, virt);
12}
13
14static inline pmd_t *pmd_off_k(unsigned long virt)
15{
16 return pmd_off(pgd_offset_k(virt), virt);
17}
18
Russell King3ff15592006-11-30 13:53:54 +000019#endif
20
Russell King1b2e2b72006-08-21 17:06:38 +010021struct map_desc;
Russell Kingd111e8f2006-09-27 15:27:33 +010022struct meminfo;
23struct pglist_data;
Russell King1b2e2b72006-08-21 17:06:38 +010024
Russell King1b2e2b72006-08-21 17:06:38 +010025void __init create_mapping(struct map_desc *md);
Russell Kingd111e8f2006-09-27 15:27:33 +010026void __init bootmem_init(struct meminfo *mi);
27void reserve_node_zero(struct pglist_data *pgdat);