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