Russell King | 1b2e2b7 | 2006-08-21 17:06:38 +0100 | [diff] [blame] | 1 | /* the upper-most page table pointer */ |
Russell King | 3ff1559 | 2006-11-30 13:53:54 +0000 | [diff] [blame] | 2 | |
| 3 | #ifdef CONFIG_MMU |
| 4 | |
Russell King | 1b2e2b7 | 2006-08-21 17:06:38 +0100 | [diff] [blame] | 5 | extern pmd_t *top_pmd; |
| 6 | |
| 7 | #define TOP_PTE(x) pte_offset_kernel(top_pmd, x) |
| 8 | |
| 9 | static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt) |
| 10 | { |
| 11 | return pmd_offset(pgd, virt); |
| 12 | } |
| 13 | |
| 14 | static inline pmd_t *pmd_off_k(unsigned long virt) |
| 15 | { |
| 16 | return pmd_off(pgd_offset_k(virt), virt); |
| 17 | } |
| 18 | |
Russell King | 3ff1559 | 2006-11-30 13:53:54 +0000 | [diff] [blame] | 19 | #endif |
| 20 | |
Russell King | 1b2e2b7 | 2006-08-21 17:06:38 +0100 | [diff] [blame] | 21 | struct map_desc; |
Russell King | d111e8f | 2006-09-27 15:27:33 +0100 | [diff] [blame] | 22 | struct meminfo; |
| 23 | struct pglist_data; |
Russell King | 1b2e2b7 | 2006-08-21 17:06:38 +0100 | [diff] [blame] | 24 | |
Russell King | 1b2e2b7 | 2006-08-21 17:06:38 +0100 | [diff] [blame] | 25 | void __init create_mapping(struct map_desc *md); |
Russell King | d111e8f | 2006-09-27 15:27:33 +0100 | [diff] [blame] | 26 | void __init bootmem_init(struct meminfo *mi); |
| 27 | void reserve_node_zero(struct pglist_data *pgdat); |