diff options
Diffstat (limited to 'include/asm-v850/pgtable.h')
-rw-r--r-- | include/asm-v850/pgtable.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/include/asm-v850/pgtable.h b/include/asm-v850/pgtable.h new file mode 100644 index 000000000000..76e380e481e9 --- /dev/null +++ b/include/asm-v850/pgtable.h | |||
@@ -0,0 +1,58 @@ | |||
1 | #ifndef __V850_PGTABLE_H__ | ||
2 | #define __V850_PGTABLE_H__ | ||
3 | |||
4 | #include <asm-generic/4level-fixup.h> | ||
5 | |||
6 | #include <linux/config.h> | ||
7 | #include <asm/page.h> | ||
8 | |||
9 | |||
10 | #define pgd_present(pgd) (1) /* pages are always present on NO_MM */ | ||
11 | #define pgd_none(pgd) (0) | ||
12 | #define pgd_bad(pgd) (0) | ||
13 | #define pgd_clear(pgdp) ((void)0) | ||
14 | |||
15 | #define pmd_offset(a, b) ((void *)0) | ||
16 | |||
17 | #define kern_addr_valid(addr) (1) | ||
18 | |||
19 | |||
20 | #define __swp_type(x) (0) | ||
21 | #define __swp_offset(x) (0) | ||
22 | #define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) | ||
23 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) | ||
24 | #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) | ||
25 | |||
26 | |||
27 | /* These mean nothing to !CONFIG_MMU. */ | ||
28 | #define PAGE_NONE __pgprot(0) | ||
29 | #define PAGE_SHARED __pgprot(0) | ||
30 | #define PAGE_COPY __pgprot(0) | ||
31 | #define PAGE_READONLY __pgprot(0) | ||
32 | #define PAGE_KERNEL __pgprot(0) | ||
33 | |||
34 | |||
35 | /* | ||
36 | * ZERO_PAGE is a global shared page that is always zero: used | ||
37 | * for zero-mapped memory areas etc. When CONFIG_MMU is not defined, this | ||
38 | * should never actually be used, so just define it to something that's | ||
39 | * will hopefully cause a bus error if it is. | ||
40 | */ | ||
41 | #define ZERO_PAGE(vaddr) ((void *)0x87654321) | ||
42 | |||
43 | |||
44 | /* Some bogus code in procfs uses these; whatever. */ | ||
45 | #define VMALLOC_START 0 | ||
46 | #define VMALLOC_END (~0) | ||
47 | |||
48 | |||
49 | extern void paging_init (void); | ||
50 | #define swapper_pg_dir ((pgd_t *) 0) | ||
51 | |||
52 | #define pgtable_cache_init() ((void)0) | ||
53 | |||
54 | |||
55 | extern unsigned int kobjsize(const void *objp); | ||
56 | |||
57 | |||
58 | #endif /* __V850_PGTABLE_H__ */ | ||