aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68knommu/include/asm/pgtable.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-08-07 21:07:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-08-07 21:07:33 -0400
commit3d8cd0c5d75c424f986c0602dc26579fbb7c8080 (patch)
tree03c61f81542f6c34e32eb5e0dfc3d34668f88fdd /arch/m68knommu/include/asm/pgtable.h
parent4c514a5ad1314b872e3185dabaf105c81d39d7e8 (diff)
parent58750139001bae11a1f9b074f3a9c774fecf5ba8 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: Move all of include/asm-m68knommu to arch/m68knommu/include/asm.
Diffstat (limited to 'arch/m68knommu/include/asm/pgtable.h')
-rw-r--r--arch/m68knommu/include/asm/pgtable.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/arch/m68knommu/include/asm/pgtable.h b/arch/m68knommu/include/asm/pgtable.h
new file mode 100644
index 000000000000..46251016e821
--- /dev/null
+++ b/arch/m68knommu/include/asm/pgtable.h
@@ -0,0 +1,70 @@
1#ifndef _M68KNOMMU_PGTABLE_H
2#define _M68KNOMMU_PGTABLE_H
3
4#include <asm-generic/4level-fixup.h>
5
6/*
7 * (C) Copyright 2000-2002, Greg Ungerer <gerg@snapgear.com>
8 */
9
10#include <linux/slab.h>
11#include <asm/processor.h>
12#include <asm/page.h>
13#include <asm/io.h>
14
15/*
16 * Trivial page table functions.
17 */
18#define pgd_present(pgd) (1)
19#define pgd_none(pgd) (0)
20#define pgd_bad(pgd) (0)
21#define pgd_clear(pgdp)
22#define kern_addr_valid(addr) (1)
23#define pmd_offset(a, b) ((void *)0)
24
25#define PAGE_NONE __pgprot(0)
26#define PAGE_SHARED __pgprot(0)
27#define PAGE_COPY __pgprot(0)
28#define PAGE_READONLY __pgprot(0)
29#define PAGE_KERNEL __pgprot(0)
30
31extern void paging_init(void);
32#define swapper_pg_dir ((pgd_t *) 0)
33
34#define __swp_type(x) (0)
35#define __swp_offset(x) (0)
36#define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) })
37#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
38#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
39
40static inline int pte_file(pte_t pte) { return 0; }
41
42/*
43 * ZERO_PAGE is a global shared page that is always zero: used
44 * for zero-mapped memory areas etc..
45 */
46#define ZERO_PAGE(vaddr) (virt_to_page(0))
47
48/*
49 * These would be in other places but having them here reduces the diffs.
50 */
51extern unsigned int kobjsize(const void *objp);
52
53/*
54 * No page table caches to initialise.
55 */
56#define pgtable_cache_init() do { } while (0)
57
58#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
59 remap_pfn_range(vma, vaddr, pfn, size, prot)
60
61/*
62 * All 32bit addresses are effectively valid for vmalloc...
63 * Sort of meaningless for non-VM targets.
64 */
65#define VMALLOC_START 0
66#define VMALLOC_END 0xffffffff
67
68#include <asm-generic/pgtable.h>
69
70#endif /* _M68KNOMMU_PGTABLE_H */