xref: /linux/arch/m68k/include/asm/pgtable_no.h (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _M68KNOMMU_PGTABLE_H
3 #define _M68KNOMMU_PGTABLE_H
4 
5 #include <asm-generic/pgtable-nopud.h>
6 
7 /*
8  * (C) Copyright 2000-2002, Greg Ungerer <gerg@snapgear.com>
9  */
10 
11 #include <linux/slab.h>
12 #include <asm/processor.h>
13 #include <asm/page.h>
14 #include <asm/io.h>
15 
16 /*
17  * Trivial page table functions.
18  */
19 #define pgd_present(pgd)	(1)
20 #define pgd_none(pgd)		(0)
21 #define pgd_bad(pgd)		(0)
22 #define pgd_clear(pgdp)
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 
31 #define swapper_pg_dir ((pgd_t *) 0)
32 
33 /*
34  * ZERO_PAGE is a global shared page that is always zero: used
35  * for zero-mapped memory areas etc..
36  */
37 extern void *empty_zero_page;
38 #define ZERO_PAGE(vaddr)	(virt_to_page(empty_zero_page))
39 
40 /*
41  * All 32bit addresses are effectively valid for vmalloc...
42  * Sort of meaningless for non-VM targets.
43  */
44 #define	VMALLOC_START	0
45 #define	VMALLOC_END	0xffffffff
46 #define	KMAP_START	0
47 #define	KMAP_END	0xffffffff
48 
49 #endif /* _M68KNOMMU_PGTABLE_H */
50