diff options
-rw-r--r-- | arch/sparc/include/asm/fixmap.h | 26 | ||||
-rw-r--r-- | arch/sparc/include/asm/highmem.h | 1 | ||||
-rw-r--r-- | arch/sparc/include/asm/vaddrs.h | 22 | ||||
-rw-r--r-- | arch/sparc/mm/highmem.c | 7 |
4 files changed, 26 insertions, 30 deletions
diff --git a/arch/sparc/include/asm/fixmap.h b/arch/sparc/include/asm/fixmap.h deleted file mode 100644 index 0bdec9385a80..000000000000 --- a/arch/sparc/include/asm/fixmap.h +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | /* Highmem related constants */ | ||
2 | |||
3 | #ifndef _ASM_FIXMAP_H | ||
4 | #define _ASM_FIXMAP_H | ||
5 | |||
6 | #include <asm/kmap_types.h> | ||
7 | |||
8 | enum fixed_addresses { | ||
9 | FIX_HOLE, | ||
10 | #ifdef CONFIG_HIGHMEM | ||
11 | FIX_KMAP_BEGIN, | ||
12 | FIX_KMAP_END = (KM_TYPE_NR * NR_CPUS), | ||
13 | #endif | ||
14 | __end_of_fixed_addresses | ||
15 | }; | ||
16 | |||
17 | /* Leave one empty page between IO pages at 0xfd000000 and | ||
18 | * the top of the fixmap. | ||
19 | */ | ||
20 | #define FIXADDR_TOP (0xfcfff000UL) | ||
21 | #define FIXADDR_SIZE ((FIX_KMAP_END + 1) << PAGE_SHIFT) | ||
22 | #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) | ||
23 | |||
24 | #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT)) | ||
25 | |||
26 | #endif | ||
diff --git a/arch/sparc/include/asm/highmem.h b/arch/sparc/include/asm/highmem.h index a31b2a1f0866..639338353909 100644 --- a/arch/sparc/include/asm/highmem.h +++ b/arch/sparc/include/asm/highmem.h | |||
@@ -21,7 +21,6 @@ | |||
21 | #ifdef __KERNEL__ | 21 | #ifdef __KERNEL__ |
22 | 22 | ||
23 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
24 | #include <asm/fixmap.h> | ||
25 | #include <asm/vaddrs.h> | 24 | #include <asm/vaddrs.h> |
26 | #include <asm/kmap_types.h> | 25 | #include <asm/kmap_types.h> |
27 | #include <asm/pgtable.h> | 26 | #include <asm/pgtable.h> |
diff --git a/arch/sparc/include/asm/vaddrs.h b/arch/sparc/include/asm/vaddrs.h index da6535d88a72..c3dbcf902034 100644 --- a/arch/sparc/include/asm/vaddrs.h +++ b/arch/sparc/include/asm/vaddrs.h | |||
@@ -30,6 +30,28 @@ | |||
30 | */ | 30 | */ |
31 | #define SRMMU_NOCACHE_ALCRATIO 64 /* 256 pages per 64MB of system RAM */ | 31 | #define SRMMU_NOCACHE_ALCRATIO 64 /* 256 pages per 64MB of system RAM */ |
32 | 32 | ||
33 | #ifndef __ASSEMBLY__ | ||
34 | #include <asm/kmap_types.h> | ||
35 | |||
36 | enum fixed_addresses { | ||
37 | FIX_HOLE, | ||
38 | #ifdef CONFIG_HIGHMEM | ||
39 | FIX_KMAP_BEGIN, | ||
40 | FIX_KMAP_END = (KM_TYPE_NR * NR_CPUS), | ||
41 | #endif | ||
42 | __end_of_fixed_addresses | ||
43 | }; | ||
44 | #endif | ||
45 | |||
46 | /* Leave one empty page between IO pages at 0xfd000000 and | ||
47 | * the top of the fixmap. | ||
48 | */ | ||
49 | #define FIXADDR_TOP (0xfcfff000UL) | ||
50 | #define FIXADDR_SIZE ((FIX_KMAP_END + 1) << PAGE_SHIFT) | ||
51 | #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) | ||
52 | |||
53 | #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT)) | ||
54 | |||
33 | #define SUN4M_IOBASE_VADDR 0xfd000000 /* Base for mapping pages */ | 55 | #define SUN4M_IOBASE_VADDR 0xfd000000 /* Base for mapping pages */ |
34 | #define IOBASE_VADDR 0xfe000000 | 56 | #define IOBASE_VADDR 0xfe000000 |
35 | #define IOBASE_END 0xfe600000 | 57 | #define IOBASE_END 0xfe600000 |
diff --git a/arch/sparc/mm/highmem.c b/arch/sparc/mm/highmem.c index 856432a109d2..4d5f8b3c4090 100644 --- a/arch/sparc/mm/highmem.c +++ b/arch/sparc/mm/highmem.c | |||
@@ -22,13 +22,14 @@ | |||
22 | * shared by CPUs, and so precious, and establishing them requires IPI. | 22 | * shared by CPUs, and so precious, and establishing them requires IPI. |
23 | * Atomic kmaps are lightweight and we may have NCPUS more of them. | 23 | * Atomic kmaps are lightweight and we may have NCPUS more of them. |
24 | */ | 24 | */ |
25 | #include <linux/mm.h> | ||
26 | #include <linux/highmem.h> | 25 | #include <linux/highmem.h> |
27 | #include <linux/export.h> | 26 | #include <linux/export.h> |
28 | #include <asm/pgalloc.h> | 27 | #include <linux/mm.h> |
28 | |||
29 | #include <asm/cacheflush.h> | 29 | #include <asm/cacheflush.h> |
30 | #include <asm/tlbflush.h> | 30 | #include <asm/tlbflush.h> |
31 | #include <asm/fixmap.h> | 31 | #include <asm/pgalloc.h> |
32 | #include <asm/vaddrs.h> | ||
32 | 33 | ||
33 | void *kmap_atomic(struct page *page) | 34 | void *kmap_atomic(struct page *page) |
34 | { | 35 | { |