OSDN Git Service

a6406182e144777ed19e03d250b738298ea76e2f
[uclinux-h8/linux.git] / arch / h8300 / include / asm / pgtable.h
1 #ifndef _H8300_PGTABLE_H
2 #define _H8300_PGTABLE_H
3 #include <asm-generic/pgtable-nopud.h>
4 #include <asm-generic/pgtable.h>
5 #define pgtable_cache_init()   do { } while (0)
6 extern void paging_init(void);
7 #define PAGE_NONE               __pgprot(0)    /* these mean nothing to NO_MM */
8 #define PAGE_SHARED             __pgprot(0)    /* these mean nothing to NO_MM */
9 #define PAGE_COPY               __pgprot(0)    /* these mean nothing to NO_MM */
10 #define PAGE_READONLY   __pgprot(0)    /* these mean nothing to NO_MM */
11 #define PAGE_KERNEL             __pgprot(0)    /* these mean nothing to NO_MM */
12 #define __swp_type(x)           (0)
13 #define __swp_offset(x)         (0)
14 #define __swp_entry(typ, off)   ((swp_entry_t) { ((typ) | ((off) << 7)) })
15 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
16 #define __swp_entry_to_pte(x)   ((pte_t) { (x).val })
17 #define kern_addr_valid(addr)   (1)
18
19 static inline int pte_file(pte_t pte) { return 0; }
20 #define swapper_pg_dir ((pgd_t *) 0)
21 /*
22  * ZERO_PAGE is a global shared page that is always zero: used
23  * for zero-mapped memory areas etc..
24  */
25 #define ZERO_PAGE(vaddr)        (virt_to_page(0))
26
27 /*
28  * These would be in other places but having them here reduces the diffs.
29  */
30 extern unsigned int kobjsize(const void *objp);
31 extern int is_in_rom(unsigned long);
32
33 /*
34  * No page table caches to initialise
35  */
36 #define pgtable_cache_init()   do { } while (0)
37
38 /*
39  * All 32bit addresses are effectively valid for vmalloc...
40  * Sort of meaningless for non-VM targets.
41  */
42 #define VMALLOC_START   0
43 #define VMALLOC_END     0xffffffff
44
45 #define arch_enter_lazy_cpu_mode()    do {} while (0)
46
47 #endif /* _H8300_PGTABLE_H */