1
2
3
4
5
6
7
8
9
10
11
12#include <asm/hwdef-copro.h>
13
14
15extern pmd_t *top_pmd;
16extern int sysctl_overcommit_memory;
17
18#define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
19
20static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt)
21{
22 return pmd_offset((pud_t *)pgd, virt);
23}
24
25static inline pmd_t *pmd_off_k(unsigned long virt)
26{
27 return pmd_off(pgd_offset_k(virt), virt);
28}
29
30struct mem_type {
31 unsigned int prot_pte;
32 unsigned int prot_l1;
33 unsigned int prot_sect;
34};
35
36const struct mem_type *get_mem_type(unsigned int type);
37
38extern void __flush_dcache_page(struct address_space *, struct page *);
39extern void hook_fault_code(int nr, int (*fn)
40 (unsigned long, unsigned int, struct pt_regs *),
41 int sig, int code, const char *name);
42
43void __init bootmem_init(void);
44void uc32_mm_memblock_reserve(void);
45