aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-h8300/pgtable.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-h8300/pgtable.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-h8300/pgtable.h')
-rw-r--r--include/asm-h8300/pgtable.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/include/asm-h8300/pgtable.h b/include/asm-h8300/pgtable.h
new file mode 100644
index 000000000000..69076eb31476
--- /dev/null
+++ b/include/asm-h8300/pgtable.h
@@ -0,0 +1,79 @@
1#ifndef _H8300_PGTABLE_H
2#define _H8300_PGTABLE_H
3
4#include <asm-generic/4level-fixup.h>
5
6#include <linux/config.h>
7#include <linux/slab.h>
8#include <asm/processor.h>
9#include <asm/page.h>
10#include <asm/io.h>
11
12#define pgd_present(pgd) (1) /* pages are always present on NO_MM */
13#define pgd_none(pgd) (0)
14#define pgd_bad(pgd) (0)
15#define pgd_clear(pgdp)
16#define kern_addr_valid(addr) (1)
17#define pmd_offset(a, b) ((void *)0)
18#define pmd_none(pmd) (1)
19#define pgd_offset_k(adrdress) ((pgd_t *)0)
20#define pte_offset_kernel(dir, address) ((pte_t *)0)
21
22#define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */
23#define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */
24#define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */
25#define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */
26#define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
27
28extern void paging_init(void);
29#define swapper_pg_dir ((pgd_t *) 0)
30
31#define __swp_type(x) (0)
32#define __swp_offset(x) (0)
33#define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) })
34#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
35#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
36
37static inline int pte_file(pte_t pte) { return 0; }
38
39/*
40 * ZERO_PAGE is a global shared page that is always zero: used
41 * for zero-mapped memory areas etc..
42 */
43#define ZERO_PAGE(vaddr) (virt_to_page(0))
44
45/*
46 * These would be in other places but having them here reduces the diffs.
47 */
48extern unsigned int kobjsize(const void *objp);
49extern int is_in_rom(unsigned long);
50
51/*
52 * No page table caches to initialise
53 */
54#define pgtable_cache_init() do { } while (0)
55#define io_remap_page_range(vma, vaddr, paddr, size, prot) \
56 remap_pfn_range(vma, vaddr, (paddr) >> PAGE_SHIFT, size, prot)
57
58#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
59 remap_pfn_range(vma, vaddr, pfn, size, prot)
60
61#define MK_IOSPACE_PFN(space, pfn) (pfn)
62#define GET_IOSPACE(pfn) 0
63#define GET_PFN(pfn) (pfn)
64
65/*
66 * All 32bit addresses are effectively valid for vmalloc...
67 * Sort of meaningless for non-VM targets.
68 */
69#define VMALLOC_START 0
70#define VMALLOC_END 0xffffffff
71
72/*
73 * All 32bit addresses are effectively valid for vmalloc...
74 * Sort of meaningless for non-VM targets.
75 */
76#define VMALLOC_START 0
77#define VMALLOC_END 0xffffffff
78
79#endif /* _H8300_PGTABLE_H */