Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* the upper-most page table pointer */
2
3#ifdef CONFIG_MMU
4
5extern 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
19struct 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;
25};
26
27const struct mem_type *get_mem_type(unsigned int type);
28
29#endif
30
31struct map_desc;
32struct meminfo;
33struct pglist_data;
34
35void __init create_mapping(struct map_desc *md);
36void __init bootmem_init(struct meminfo *mi);
37void reserve_node_zero(struct pglist_data *pgdat);